From DataFrame to Nested Dictionary

前端 未结 0 1701
慢半拍i
慢半拍i 2021-01-23 23:43

I want to make a nested dictionary out of DataFrame Values like this:

Input

dfdict={\'country\': {0: \'USA\', 1: \'USA\', 2: \'USA\', 3: \'USA\'},
 \'state         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题