import pandas as pd
# DataForm two-dimensional data
# print (pd.read_excel ( "datas.xlsx" ))
# Multiple rows of data - Load sheet
S = pd.read_excel ( "datas.xlsx")
Print (S)
# Multiple rows of data - random
print (s.sample (2) .values)
A data line #
print (s.loc [0] .values) # in addition to the header, from index 0.
# Multiple rows of data
Print (s.loc [. 1:. 3]) # l, 2,3
Print (s.loc [. 1:. 3] .values)
# One cell data
print (s.iloc [1,0]) # header data other than the second row first column.
# Profile -