Skip to content
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: Deprecate pandas/io/date_converters.py #35741

Merged
merged 21 commits into from
Sep 12, 2020

Conversation

avinashpancham
Copy link
Contributor

@avinashpancham avinashpancham commented Aug 15, 2020

@avinashpancham avinashpancham changed the title Deprecate date converters DEPR: Deprecate pandas/io/date_converters.py Aug 15, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so you are deprecating, changing the impl and removing the tests. I am ok with this if you don't remove any tests (and just assert the warnings). otherwise its very hard to tell if things still work as before (which defeats the point of deprecation). i am also ok with leaving the impl completely (though your changes do clean up).

pandas/core/tools/datetimes.py Outdated Show resolved Hide resolved
pandas/io/date_converters.py Outdated Show resolved Hide resolved
pandas/tests/io/parser/test_parse_dates.py Outdated Show resolved Hide resolved
pandas/tests/io/parser/test_parse_dates.py Outdated Show resolved Hide resolved
pandas/tests/io/parser/test_parse_dates.py Outdated Show resolved Hide resolved
@jreback jreback added Deprecate Functionality to remove in pandas Datetime Datetime data dtype labels Aug 19, 2020
@MarcoGorelli MarcoGorelli self-requested a review August 26, 2020 19:11
@avinashpancham
Copy link
Contributor Author

@jreback addressed all your comments. Could you have a second look?

@jreback jreback added this to the 1.2 milestone Sep 5, 2020
@jreback
Copy link
Contributor

jreback commented Sep 5, 2020

this looks good can you merge master and ping on green.

@avinashpancham
Copy link
Contributor Author

avinashpancham commented Sep 5, 2020

@jreback merged master; all checks in CI pass except two, due to a flaky test (see below)

hypothesis.errors.Flaky: Hypothesis test_shift_across_dst(offset=<31 * MonthEnds>) produces unreliable results: Falsified on the first call but did not on a subsequent one

@avinashpancham
Copy link
Contributor Author

Reran CI, now everything passes

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good some doc comments, also please merge master. ping on green.

@@ -195,7 +195,7 @@ Deprecations
~~~~~~~~~~~~
- Deprecated parameter ``inplace`` in :meth:`MultiIndex.set_codes` and :meth:`MultiIndex.set_levels` (:issue:`35626`)
- Deprecated parameter ``dtype`` in :~meth:`Index.copy` on method all index classes. Use the :meth:`Index.astype` method instead for changing dtype(:issue:`35853`)
-
- Date parser functions :func:`parse_date_time`, :func:`parse_date_fields`, :func:`parse_all_fields` and :func:`generic_parser` from ``pandas.io.date_converters`` are deprecated and will be removed in a future version; use pandas.to_datetime() instead (GH35741)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you put in :func:`to_datetime` so it renders all of the others won't render at all i think (e.g. :func:`parse_date_time` . so those should be updated to a fully qualified path (e.g. pandas.io.date_converters)

@avinashpancham
Copy link
Contributor Author

@jreback updated doc, merged master and CI on green

@jreback jreback merged commit b8f22ad into pandas-dev:master Sep 12, 2020
@jreback
Copy link
Contributor

jreback commented Sep 12, 2020

thanks @avinashpancham very nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: deprecate pandas/io/date_converters.py
3 participants