Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe to dictionary with one column as key

pd.Series(df.A.values,index=df.B).to_dict()
 
PREVIOUS NEXT
Tagged: #dataframe #dictionary #column #key
ADD COMMENT
Topic
Name
8+2 =