pandas 1.4.2

Parameters
_normalise_json(data: 'Any', key_string: 'str', normalized_dict: 'dict[str, Any]', separator: 'str') -> 'dict[str, Any]'

Parameters

data : Any

Type dependent on types contained within nested Json

key_string : str

New key (with separator(s) in) for data

normalized_dict : dict

The new normalized/flattened Json dict

separator : str, default '.'

Nested records will generate names separated by sep, e.g., for sep='.', { 'foo' : { 'bar' : 0 } } -> foo.bar

Main recursive function Designed for the most basic use case of pd.json_normalize(data) intended as a performance improvement, see #15621

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/io/json/_normalize.py#122
type: <class 'function'>
Commit: