Pandas set index or reindex without changing the order of the data frame
df=df.reset_index(drop=True)? – ansev 1 min ago
Hello I have a dataframe I sorted so the index is not in order so I want to reorder the index so that sorted values have an index that is sequential I have not been able to figure this out should I remove the index or is there a way to set the index? When I reindex it should sorts by the index which unsorts by index.