df 에서 색인 삭제
>>> df.reset_index(drop=True)
class max_speed
0 bird 389.0
1 bird 24.0
2 mammal 80.5
3 mammal NaN
pd 에서 색인을 제거하십시오.읽기
df.to_csv(filename, index=False)
팬더에서 색인 열을 삭제하는 방법
df.reset_index(drop=True, inplace=True)
팬더 df 제거 색인
df = df.reset_index(drop=True)