-
Notifications
You must be signed in to change notification settings - Fork 915
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
Document cudf.read_text and cudf.read_avro. #10638
Document cudf.read_text and cudf.read_avro. #10638
Conversation
python/cudf/cudf/utils/ioutils.py
Outdated
See Also | ||
-------- | ||
cudf.read_csv | ||
cudf.read_json | ||
cudf.io.json.read_json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question for reviewers: Why are cudf.read_csv
and cudf.io.json.read_json
in the "See Also" section of the read_avro
docs? Should we remove this? I don't see the relationship, but I'm not familiar with the Avro format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I don't think there's a good reason to mention CSV and JSON here.
Why are namespaces(?) so different between csv and json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are namespaces(?) so different between csv and json?
It seems to me that cudf.io.json.read_json
should be documented as cudf.read_json
to mirror pandas. https://pandas.pydata.org/docs/reference/api/pandas.read_json.html
I can fix that in a separate PR, if you like. This one has a nice small scope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #10640
Codecov Report
@@ Coverage Diff @@
## branch-22.06 #10638 +/- ##
================================================
+ Coverage 86.33% 86.36% +0.02%
================================================
Files 140 140
Lines 22289 22289
================================================
+ Hits 19244 19250 +6
+ Misses 3045 3039 -6
Continue to review full report at Codecov.
|
@gpucibot merge |
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
This adds documentation for
cudf.read_text
andcudf.read_avro
.