Apr-05-2022, 07:14 AM
(This post was last modified: Apr-05-2022, 07:14 AM by deanhystad.)
Are you sure it doesn't work? df.reset_index(drop=True) does not work in place. It creates a new Dataframe that is the return value of the function call. Are you doing this:
new_df = df.reset_index(drop=True)