loc 即location, 是按dataframe 的index 名称进行索引。
iloc 是按dataframe 的index 位置(0,1,2,… )进行索引。
python pandas loc 与iloc的区别:
最新推荐文章于 2024-06-02 23:19:04 发布
loc 即location, 是按dataframe 的index 名称进行索引。
iloc 是按dataframe 的index 位置(0,1,2,… )进行索引。