sparkbyexamples.com
Pandas Set Index Name to DataFrame
Use pandas.DataFrame.rename_axis() to set the index name/title, in order to get the index use DataFrame.index.name property and the same could be used to
Naveen Nelamali