Rename Dataframe Index Column Pandas Code Example

Snippet 1
  df.index.names = ['new_name']