DataFrame loc和iloc的区别
loc
loc是select by label(name)
loc函数是选择dataframe中那一行的index == k的
iloc
loc是select by position
loc函数是选择dataframe中第position行
举例

d1.loc[0]

d1.iloc[0]

loc是select by label(name)
loc函数是选择dataframe中那一行的index == k的
loc是select by position
loc函数是选择dataframe中第position行


