Skip to content

Commit

Permalink
Use cudf.read_json as documented API name. (#10640)
Browse files Browse the repository at this point in the history
Changes documented API name from `cudf.io.json.read_json` to `cudf.read_json`. This aligns with Pandas' documentation and eliminates an awkward switch of the `.. currentmodule` in Sphinx. See thread: #10638 (comment)

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - https://github.com/brandon-b-miller

URL: #10640
  • Loading branch information
bdice authored Apr 12, 2022
1 parent 2348277 commit d6c15e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions docs/cudf/source/api_docs/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@ Text

read_text

.. currentmodule:: cudf.io.json

JSON
~~~~
.. autosummary::
:toctree: api/

read_json
to_json

.. currentmodule:: cudf
DataFrame.to_json

Parquet
~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions python/cudf/cudf/utils/ioutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@
See Also
--------
.cudf.io.json.to_json
cudf.DataFrame.to_json
"""
doc_read_json = docfmt_partial(docstring=_docstring_read_json)

Expand Down Expand Up @@ -628,7 +628,7 @@
See Also
--------
.cudf.io.json.read_json
cudf.read_json
"""
doc_to_json = docfmt_partial(docstring=_docstring_to_json)

Expand Down

0 comments on commit d6c15e4

Please sign in to comment.