pandas 1.4.2

NotesParametersRaisesReturns
parse_table_schema(json, precise_float)

Notes

Because DataFrame.to_json uses the string 'index' to denote a name-less Index , this function sets the name of the returned DataFrame to None when said string is encountered with a normal Index . For a MultiIndex , the same limitation applies to any strings beginning with ':None:None:`level_`'. Therefore, an Index name of 'index' and MultiIndex names starting with ':None:None:`level_`' are not supported.

Parameters

json :

A JSON table schema

precise_float : bool

Flag controlling precision when decoding string to double values, as dictated by read_json

Raises

NotImplementedError

If the JSON table schema contains either timezone or timedelta data

Returns

df : DataFrame

Builds a DataFrame from a given schema

See Also

build_table_schema

Inverse function.

pandas.read_json

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/_table_schema.py#305
type: <class 'function'>
Commit: