human
Get index values of Pandas DataFrame as list?
assistant
Here is some code to get index values of pandas dataframe `df` as list

df.index.values.tolist()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.