python reset index to start at 0 code example Example: pandas reset index start from 0 gapminder_ocean.reset_index(drop=True, inplace=True)