python pandas loc 与iloc的区别:

loc 即location, 是按dataframe 的index 名称进行索引。
iloc 是按dataframe 的index 位置(0,1,2,… )进行索引。

猜你喜欢

转载自blog.csdn.net/mengdg3000/article/details/84581005