I have this Dataframe:
Dataframe
import pandas as pd df = pd.DataFrame({\'Hugo\' : {\'age\' : 21, \'weight\' : 75}, \'Bertram\': {\'age\' :
Change the drop variable to False.
df = df.set_index("age", drop=False)