File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -2018,6 +2018,23 @@ JSON Table Schema compatible dict, which can be easily seriealized.
20182018
20192019 pd.to_json_schema(df)
20202020
2021+ The full list of types supported are described in the JSON Table Schema
2022+ spec. This table shows the mapping from pandas types:
2023+
2024+ ============== ======================
2025+ Pandas type JSON Table Schema type
2026+ ============== ======================
2027+ int64 integer
2028+ float64 number
2029+ bool boolean
2030+ datetime64[ns] date
2031+ timedelta64[ns] timedelta
2032+ =============== ======================
2033+
2034+ By default, the `primary_key ` attribute is set to the index when
2035+ the index (or MultiIndex) has a name (or names) and is unique.
2036+ This behavior can be overridden with the `index ` and `primary_key `
2037+ arguments.
20212038
20222039_JSON Table Schema: http://specs.frictionlessdata.io/json-table-schema/
20232040
You can’t perform that action at this time.
0 commit comments