I have a dataframe in pandas as such
Name Age Gender
Emily 10 female
Rob 12 male
I want to save a csv file from this dataframe so that it looks like so
Index ColumnName
0 Name
1 Age
2 Gender
I can't find anything online which tell me how I can do this.