-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
read_csv Documentation Rendering Poorly #22057
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
Comments
Seems to be a change in the rendering code (here / upstream). That line hasn't changed in awhile. It looks fine in the That being said, I generally prefer one-liner data type descriptions, so we can take this opportunity to shorten it for ease of reading anyhow. |
@gfyoung that's correct, though I'm under the impression that we may have just been getting lucky previously. I'm not sure of any other docstring that has a continuation like that so I'm under the impression that's what needs to be fixed, but lmk if you have other ideas |
@WillAyd : Oh, I agree that we can reword this. I'll put up a PR shortly. |
Shortens dtype description following colon and moves it to a more expanded parameter description. Closes pandas-devgh-22057.
Shortens dtype description following colon and moves it to a more expanded parameter description. Closes pandas-devgh-22057.
Shortens dtype description following colon and moves it to a more expanded parameter description. Closes pandas-devgh-22057.
Normally such continuation lines should work, that is the general solution in case you need a multi-line (in essence a single line due to the Maybe it has to do with the fact that it is a raw ( |
@jorisvandenbossche : Right. Hard to tell since we never changed it since |
Well, looking at the blame, we actually did change that the last months: https://github.com/pandas-dev/pandas/pull/18968/files |
Ah...hmm...I didn't notice that. 🙂 - would be surprised if that was the cause, but I think the actual PR is a better solution. 🙂 |
Shortens dtype description following colon and moves it to a more expanded parameter description. Closes pandas-devgh-22057.
Why would you be surprised? The raw means that things like (but I fully agree your PR is a big improvement in the explanation of the parameter! which makes this work-around unnecessary) |
🤦♂️ - oh right, of course! I completely forgot that fact 🙂 |
Shortens dtype description following colon and moves it to a more expanded parameter description. Closes gh-22057.
Shortens dtype description following colon and moves it to a more expanded parameter description. Closes pandas-devgh-22057.
Looks like the
filepath_or_buffer
argument is rendering poorly in theread_csv
documentation:Should be a pretty easy doc fix:
pandas/pandas/io/parsers.py
Line 63 in edb71fd
The text was updated successfully, but these errors were encountered: