【Pandas】dataframe删除原来索引,使新索引从0开始

dataset2=dataset2.reset_index(drop=True)

原始:

现在:

猜你喜欢

转载自blog.csdn.net/u013066730/article/details/113351767