Hacker News new | ask | show | jobs
by rahimnathwani 1846 days ago
This is the default format used by pandas.DataFrame.to_dict()

I usually need a less dense version, e.g. to send to a jinja2 template, so mostly use to_dict(orient='index').