Skip to content

Commit c40309c

Browse files
committed
DOC: More notes in prose docs
1 parent 85c8d66 commit c40309c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/source/io.rst

+17
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)