# Convert a column to row name/index in Pandas in Python # importing pandas as pdimport pandas as pd# Creating a dict of listsdata = {'Name':["Akash", "Geeku", "Pankaj", "Sumitra","Ramlal"],       'Branch':["B.Tech", "MBA", "BCA", "B.Tech", "BCA"],       'Score':["80","90","60", "30", "50"],       'Result': ["Pass","Pass","Pass","Fail","Fail"]}# creating a dataframedf = pd.DataFrame(data)  df