reset index to be from 0 to n in pandas dataframe code example Example: pandas reset index start from 0 gapminder_ocean.reset_index(drop=True, inplace=True)