-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
API: deprecate from_csv in favor of read_csv #4191
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
Diffrent defaults for |
fair enough |
closing in favor of #4916 |
Reopening this because #4916 is also more general about integrating functionality of the Regarding deprecating |
I think we should just redefine as an alias to |
What is the advantage of redefining? (I suppose you mean making it use the same defaults and pass everything just through to |
No, absolutely we would need a deprecation cycle. However, I think that would be consistent with functions that we expose both in the That being said, it's largely a convenience thing and not entirely necessary for us to do (we could just remove it if it's simpler). |
I think that is a bit a different case, as that actually does something with the frame, while But of course, this will mainly annoy people that use it, so not sure it is worth the trouble. But is from time to time comes up (why it exists, why it has different defaults) |
The question is: who uses it though? |
We should deprecate (and eventually remove) anything that is not consistent with the APIs that we have. There should be 1 way to do things. @gfyoung can you do this for 0.21.0? |
@jreback : I would like to squeeze this one in, but I would like to get some feedback on how to proceed with tests. Given that Should we continue testing for the output that we currently get from |
These are not unit tests per se but largely roundtrip tests, as you can see from the search: https://github.com/pandas-dev/pandas/search?l=Python&q=from_csv&type=&utf8=%E2%9C%93 |
@gfyoung you can just catch the warning around existing tests is fine for now (agree not very many). The warning message should be very clear on how to migrate though. |
When describing how to migrate, to what level of detail should I provide besides pointing them to the docs that describe the differences with the defaults in |
i would give them a constructed function that could be copy pasted with the args filled in |
The current docstring already gives the alternative spelling with |
just too confusion and not consistent
related: #3418, #3171
The text was updated successfully, but these errors were encountered: