python: changing row index of pandas data frame [duplicate] August 26, 2023 by Tarik you can do followers_df.index = range(20)