DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+7 =
Submit