Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert 2 columns to dictionary pandas

dict(zip(df.a,df.b))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #columns #dictionary #pandas
ADD COMMENT
Topic
Name
2+1 =