Reset Index of Pandas Dataframe Without Adding Index as a Column

Python

Pass drop=True as a parameter into the reset_index function

 1|  df = df.reset_index(drop=True)
Did you find this snippet useful?

Sign up for free to to add this to your code library