df reset indices from 0 to n code example
Example 1: pandas reset index start from 0
gapminder_ocean.reset_index(drop=True, inplace=True)
Example 2: pandas reset index from 0
# df is your pandas.DataFrame
df.reset_index(inplace = True)
gapminder_ocean.reset_index(drop=True, inplace=True)
# df is your pandas.DataFrame
df.reset_index(inplace = True)