-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
DEPR: read_csv keywords: keep_date_col, delim_whitespace #55569
Comments
+1 on delim_whitespace, cache_dates, verbose, na_filter, keep_default_na. I also don't think keeping dialect hurts to much either. |
I could also be convinced to deprecate |
take |
@lithomas1 @jbrockmendel Can I file a PR for this issue? It looks like the Needs Triage tag has been removed, but we're still deciding on which parameters we'll be deprecating? |
Also thinking it would make sense to create a new decorator in pandas.util._decorators.py to handle the deprecation of multiple keyword arguments. That way we can minimize the number of conditional statements in the actual implementation for I already see that there is an IF statement being used to handle the deprecation for infer_datetime_format. |
You're free to deprecate everything that we agreed on. For doing many deprecations, it might be worth studying This was the old deprecation machinery for read_csv. |
@lithomas1 thx. The link provided appears to be the final, formal deprecation of certain features of read_csv. For this particular PR, we would want to alert users of upcoming changes by leveraging calls to Something similar to this: https://github.com/pandas-dev/pandas/pull/53710/files#diff-1a2e3df0db7dd8bddc2ec4bff9de8a7a55e328e6c32e2cecde761dc9549fcd46R9351 |
Looks like the link broke. I was talking about L497-508 of readers.py that was removed there. |
i.e. _deprecated_defaults |
Has this gone through? I see it listed in the deprecations for Pandas 2.2:
...and in the I/O guide section on CSV: Caution Deprecated since version 2.2.0: Combining date columns inside read_csv is deprecated. Use pd.to_datetime on the relevant result columns instead. ...but this issue is currently still open? I'm personally very fond of combining datetime components in the |
@sm-Fifteen It has not yet been completed. Feel free to assign the issue to yourself if you want to work on it |
@rmhowe425 : Shouldn't the deprecation notices in the doc be removed, in that case? |
That certainly makes sense to me. Not quit sure why they're in the doc given that my PR was never approved. 🤔 |
@jbrockmendel deprecated this in #56569 |
Issue Description
sep='\\s+'
" -> seems redundantOthers? ive never used verbose, na_filter, keep_default_na, or na_values.
The text was updated successfully, but these errors were encountered: