how to convert dictionary to dataframe with one index and one column code example Example: dataframe to dictionary with one column as key pd.Series(df.A.values,index=df.B).to_dict()