continuous index of a dataframe pandas code example Example: pandas reset index start from 0 gapminder_ocean.reset_index(drop=True, inplace=True)