Skip to content

DOC: Link to table schema and remove reference to internal API #33791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 29, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pandas/io/json/_table_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,17 @@ def build_table_schema(data, index=True, primary_key=None, version=True):

Notes
-----
See `_as_json_table_type` for conversion types.
See `Table Schema`_ for conversion types.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just

See `table schema
<https://pandas.pydata.org/docs/user_guide/io.html#table-schema>`__ for...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, let's hope doc builds!

Timedeltas as converted to ISO8601 duration format with
9 decimal places after the seconds field for nanosecond precision.

Categoricals are converted to the `any` dtype, and use the `enum` field
constraint to list the allowed values. The `ordered` attribute is included
in an `ordered` field.

.. _Table Schema:
https://pandas.pydata.org/docs/user_guide/io.html#table-schema

Examples
--------
>>> df = pd.DataFrame(
Expand Down