how to define index pd.Dataframe code example Example: df.index The index (row labels) of the DataFrame.