你是说索引吧,你删除某些行后,dataframe的索引还是不变的。 如果你想重新按顺序排的话,就重建索引。 假设你的dataframe是df,那就: df.reset_index(drop=True).
確定! 回上一頁