Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe to dictionary using index as key

#Use the Dataframe index as the key of the dictionary
df.to_dict('index')
Source by kanoki.org #
 
PREVIOUS NEXT
Tagged: #dataframe #dictionary #index #key
ADD COMMENT
Topic
Name
7+6 =