Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas make dataframe from dictionary keys are columns

a={'b':100,'c':300}
pd.DataFrame(a, index=['i',])
     b    c
i  100  300
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #dataframe #dictionary #keys #columns
ADD COMMENT
Topic
Name
5+6 =