-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Move examples in arrow-csv to docstrings, polish up docs #9001
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
Conversation
| //! let batch = csv.next().unwrap().unwrap(); | ||
| //! ``` | ||
| //! | ||
| //! # Example: Numeric calculations on CSV |
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.
Contents of arrow-csv/examples/csv_calculation.rs
| //! - `DataType::Utf8View` | ||
| //! | ||
| //! ## Example with whitespace handling | ||
| //! ## Example: Use [`WriterBuilder`] to control whitespace handling |
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.
This already has the contents of arrow-csv/examples/whitespace_handling.rs, so let's not duplicate it again
| type Bounds = Option<(usize, usize)>; | ||
|
|
||
| /// CSV file reader using [`std::io::BufReader`] | ||
| /// |
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.
I added a few more doc links to make it easier to navigate between the different classes
|
Thanks for doing this! |
mhilton
left a comment
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.
LGTM
|
Thank you for the review @mhilton |
Which issue does this PR close?
Rationale for this change
while reviewing @xanderbailey's PR in #8960, I found that there are examples for arrow-csv and they are hard to find. Also each example add extra binaries and thus slows down CI and tests. For example the
whitespace_handlingexample makes a new 2.9MB binary:Let's consolidate the examples to make them easier to find
What changes are included in this PR?
Are these changes tested?
We typically require tests for all PRs in order to:
Are there any user-facing changes?
Docs only, no functional changes