From ee053e84117c72f9b5da489992f1f5500bb47eba Mon Sep 17 00:00:00 2001 From: Bharat123rox Date: Sat, 25 Apr 2020 20:26:40 +0530 Subject: [PATCH 1/5] DOC: Link to table schema and remove reference to internal API --- pandas/io/json/_table_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 6061af72901a5..115b487a39a7c 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -211,7 +211,7 @@ def build_table_schema(data, index=True, primary_key=None, version=True): Notes ----- - See `_as_json_table_type` for conversion types. + See [`Table Schema`](https://pandas.pydata.org/docs/user_guide/io.html#table-schema) for conversion types. Timedeltas as converted to ISO8601 duration format with 9 decimal places after the seconds field for nanosecond precision. From beca45d52efca7416b5fc97505dfc9b0dfc79a53 Mon Sep 17 00:00:00 2001 From: Bharat123rox Date: Sun, 26 Apr 2020 10:20:12 +0530 Subject: [PATCH 2/5] DOC: Add flake8 ignore --- pandas/io/json/_table_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 115b487a39a7c..0737fd148004e 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -211,7 +211,7 @@ def build_table_schema(data, index=True, primary_key=None, version=True): Notes ----- - See [`Table Schema`](https://pandas.pydata.org/docs/user_guide/io.html#table-schema) for conversion types. + See [`Table Schema`](https://pandas.pydata.org/docs/user_guide/io.html#table-schema) for conversion types. # noqa: E501 Timedeltas as converted to ISO8601 duration format with 9 decimal places after the seconds field for nanosecond precision. From 14e83d903b6918c10b0d0b77f43620450e8c3160 Mon Sep 17 00:00:00 2001 From: Bharat123rox Date: Sun, 26 Apr 2020 19:36:30 +0530 Subject: [PATCH 3/5] DOC: Create RST Link Alias instead of Markdown --- pandas/io/json/_table_schema.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 0737fd148004e..6668463e4abaf 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -211,7 +211,7 @@ def build_table_schema(data, index=True, primary_key=None, version=True): Notes ----- - See [`Table Schema`](https://pandas.pydata.org/docs/user_guide/io.html#table-schema) for conversion types. # noqa: E501 + See `Table Schema`_ for conversion types. Timedeltas as converted to ISO8601 duration format with 9 decimal places after the seconds field for nanosecond precision. @@ -219,6 +219,9 @@ def build_table_schema(data, index=True, primary_key=None, version=True): 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( From da1b873fa30cbdd0390015e74ae2bc724d76e4de Mon Sep 17 00:00:00 2001 From: Bharat123rox Date: Sun, 26 Apr 2020 23:28:37 +0530 Subject: [PATCH 4/5] DOC: Convert to inline RST --- pandas/io/json/_table_schema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 6668463e4abaf..515c668a7846b 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -211,7 +211,9 @@ def build_table_schema(data, index=True, primary_key=None, version=True): Notes ----- - See `Table Schema`_ for conversion types. + See `Table Schema + `__ for + conversion types. Timedeltas as converted to ISO8601 duration format with 9 decimal places after the seconds field for nanosecond precision. @@ -219,8 +221,6 @@ def build_table_schema(data, index=True, primary_key=None, version=True): 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 -------- From fbdab8a0e3fd2097a47972dbf0f1d5a0c9995c76 Mon Sep 17 00:00:00 2001 From: Bharat123rox Date: Sun, 26 Apr 2020 23:31:50 +0530 Subject: [PATCH 5/5] Remove trailing whitespace --- pandas/io/json/_table_schema.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 515c668a7846b..50686594a7576 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -221,7 +221,6 @@ def build_table_schema(data, index=True, primary_key=None, version=True): constraint to list the allowed values. The `ordered` attribute is included in an `ordered` field. - Examples -------- >>> df = pd.DataFrame(