You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With better JSON/JSONB support in databases like postgres and sqlite, encountering this sort of data is becoming more common, and the intermediate apply step is a performance and usability issue:
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
I wish
pd.json_normalize
accepted JSON (as str or bytes), and not justdict
.Or, as a joke, there could be a
pd.dict_normalize
that only accepts JSON ;)Feature Description
Given a Series with JSON as str or bytes:
It should be possible to parse the JSON with
pd.json_normalize
, e.g.Pandas already has good JSON integration, so don't see why it can't be done.
Alternative Solutions
From what I understand, right now it must be first parsed with some other library, e.g. with
apply
, before usingpd.json_normalize
.Additional Context
With better JSON/JSONB support in databases like postgres and sqlite, encountering this sort of data is becoming more common, and the intermediate
apply
step is a performance and usability issue:The text was updated successfully, but these errors were encountered: