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