热线电话:13121318867

登录
2020-08-04 阅读量: 5258
python中 reset_index(drop = True) drop = True的作用是什么?

答 : drop=True 就是把原来的索引index列去掉,重置index。
drop=False 就是保留原来的索引,添加重置的index。
两者的区别就是有没有把原来的index去掉。

35.0103
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子