Pandas-loc和iloc需要注意的点

loc基于标签
iloc基于位置
 
当index为数字位置,同时也是标签的时候,丢弃掉一行,展示给我们的index是标签,位置已经完全重排了
 
posted @ 2020-08-22 09:33  duohappy  阅读(174)  评论(0编辑  收藏  举报