DataFrame的iloc与loc的区别是什么?

对于一个DataFrame A,A.loc[k]是读取A中index为k的那一行。A.iloc[k]是读取A中的第k行。

猜你喜欢

转载自www.cnblogs.com/everfight/p/dataframe_loc_iloc.html