2 ms·
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(ori
by rahimnathwani 5y 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').