Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dictionary from two columns pandas

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