File tree 1 file changed +17
-0
lines changed
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.
2018
2018
2019
2019
pd.to_json_schema(df)
2020
2020
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.
2021
2038
2022
2039
_JSON Table Schema: http://specs.frictionlessdata.io/json-table-schema/
2023
2040
You can’t perform that action at this time.
0 commit comments