Answers for "pandas change index to numbers"

14

reset_index pandas

df.reset_index(drop=True, inplace=True)
Posted by: Guest on September-27-2020
5

how to change index in dataframe python

index = [1,2]
df.index = index
Posted by: Guest on April-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language