Skip to content

DEPR: Deprecate pandas/io/date_converters.py #35741

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

Merged
merged 21 commits into from
Sep 12, 2020
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4281f16
DEPR: Deprecate parse_date_time in pandas.io.date_converters and upda…
avinashpancham Aug 15, 2020
852d4d9
DEPR: Deprecate parse_date_fields in pandas.io.date_converters and up…
avinashpancham Aug 15, 2020
eed8f16
DEPR: Deprecate parse_all_fields in pandas.io.date_converters and upd…
avinashpancham Aug 15, 2020
65ec570
DEPR: Deprecate generic_parser in pandas.io.date_converters
avinashpancham Aug 15, 2020
344e5de
DOC: Update docstrings
avinashpancham Aug 15, 2020
04d3416
DOC: remove mentions of the generic_parser functionality in the docum…
avinashpancham Aug 15, 2020
3df6bf9
CLN: remove date_parser argument from test where it is not necessary
avinashpancham Aug 15, 2020
c995111
TYP: Add MutableMapping to type hinting for pd.to_datetime
avinashpancham Aug 15, 2020
ef02e73
ENH: Add overloading to pd.to_datetime for MutableMapping
avinashpancham Aug 15, 2020
3376f49
TST: Update tests where generic_parser is used
avinashpancham Aug 18, 2020
71297cf
TST: Update tests for generic_parser in line with pandas styleguide
avinashpancham Aug 18, 2020
a4a3203
Assert warnings in test_parse_dates.py instead of filtering warnings
avinashpancham Aug 20, 2020
8d970ca
Update deprecated version and remove double doc string text
avinashpancham Aug 25, 2020
2033dc3
Revert to the old implementation of the date_converters function and …
avinashpancham Aug 25, 2020
8f90441
Remove superfluous noqa statement
avinashpancham Aug 26, 2020
2a2a271
Only assert warnings for lines that produce a warning
avinashpancham Aug 26, 2020
427bbf0
Add pytest parametrize to test old and new dateparser function
avinashpancham Aug 29, 2020
b4ed5be
Merge branch 'master' of https://github.com/pandas-dev/pandas into de…
avinashpancham Sep 5, 2020
2d80bdc
Add whatsnew entry
avinashpancham Sep 6, 2020
1458bc7
Update references in whatsnew message
avinashpancham Sep 12, 2020
a33a604
Merge remote-tracking branch 'upstream/master' into deprecate_date_co…
avinashpancham Sep 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ENH: Add overloading to pd.to_datetime for MutableMapping
  • Loading branch information
avinashpancham committed Aug 15, 2020
commit ef02e73a0dba366c7ff7f4d4cc5cf9039b40b55b
17 changes: 17 additions & 0 deletions pandas/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,23 @@ def to_datetime(
...


@overload
def to_datetime(
arg: MutableMapping,
errors: str = ...,
dayfirst: bool = ...,
yearfirst: bool = ...,
utc: Optional[bool] = ...,
format: Optional[str] = ...,
exact: bool = ...,
unit: Optional[str] = ...,
infer_datetime_format: bool = ...,
origin=...,
cache: bool = ...,
) -> "Series":
...


@overload
def to_datetime(
arg: Union[List, Tuple],
Expand Down