方法1: data.index=[i for i in range(data.shape[0])] 方法2: data.reset_index(drop=True) 法2快 喜欢可以关注【小猪课堂】公众号了解更多编程小技巧