pandas.io.json.build_table_schema
pandas 3.1.1 · Input and output · function
Build a JSON Table Schema descriptor from a DataFrame or Series.
Call syntax
json.build_table_schema(data, index=True, primary_key=None, version=True)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
data |
Required Positional or keyword |
Series or DataFrame Provide the input data read, transformed, or stored by this call. |
index |
Optional Positional or keyword Default True |
bool Supply row labels or control how existing row labels are used. |
primary_key |
Optional Positional or keyword Default None |
bool or None |
version |
Optional Positional or keyword Default True |
bool |
Returns
dict