-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: User guide still recommends delim_whitespace #58488
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
I agree with your suggested fix, but this option's deprecation will be enforced so it will be removed from the docs in the next release anyway. |
Thanks for the report! It looks like there was an attempt to add a deprecation notice, but it does not come through in the docs (reST can be tricky): pandas/doc/source/user_guide/io.rst Lines 83 to 84 in 564d0d9
Agreed that it should be, but with the way it's hard coded in the User Guide, nothing will fail if it accidentally gets left behind. Also, in good generality I think the User Guide should represent how we want users to use pandas, so I think it makes sense to remove it now, ahead of its deprecation. What do you think? |
You're right. I agree on removing it |
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/dev/user_guide/io.html#basic
Documentation problem
While the main API reference indicates that the
delim_whitespace
option topandas.read_csv
is deprecated, the User Guide still lists it as an option with no caveat. This may lead new users to adopt an option that is already deprecated, and either immediately get warnings, or write code that will break relatively soon.Suggested fix for documentation
Either remove the
delim_whitespace
option from the page (probably preferred; new users don't need to be introduced to features about to be deprecated) or add a deprecation notice similar to the one appearing on theread_csv
referenceThe text was updated successfully, but these errors were encountered: