当前位置:主页 > 软件编程 > Python代码 >
时间:2021-10-02 07:26:41 | 栏目:Python代码 | 点击:次
如下所示:
b.reset_index(drop=True)
reset_index代表重新设置索引,drop=True为删除原索引。