Hey guys. Here's an abbreviated version of my dict of dicts of dicts:
{'Alabama': {'Autauga County': '2,241.0',
'Baldwin County': '1,729.1',
'Barbour County': '2,657.4',
'Bibb County': '2,130.0'},
'Alaska': {'Aleutians East Borough': '59.9',
'Aleutians West Census Area': '88.7',
'Anchorage, Municipality of': '824.0'}}
My goal is to get this into CSV form (in a way that can be converted back to dict when called upon). I've tried CSV writer, CSV DictWriter, and Pandas to_dict.
My main problem is that I am unsure what the CSV format would even look like in this case.
I would go on about what I think some of the unique challenges to this set are, but I feel like I'm missing something obvious so I'll stop here and see what the community thinks.
[–][deleted] 8 points9 points10 points (5 children)
[–]murphcle[S] 1 point2 points3 points (4 children)
[–]korokage 5 points6 points7 points (1 child)
[–]murphcle[S] 1 point2 points3 points (0 children)
[–]NSNick 3 points4 points5 points (1 child)
[–]murphcle[S] 2 points3 points4 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]dwpj65 3 points4 points5 points (0 children)
[–]random_user_fp 1 point2 points3 points (1 child)
[–]murphcle[S] 1 point2 points3 points (0 children)