Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

columns to dictionary pandas

pd.Series(df.A.values,index=df.B).to_dict()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #columns #dictionary #pandas
ADD COMMENT
Topic
Name
2+5 =