Skip to content

Commit 7f356a7

Browse files
datapythonistavictor
authored and
victor
committed
DEPR: Removing previously deprecated datetools module (pandas-dev#6581) (pandas-dev#19119)
1 parent 5b93549 commit 7f356a7

File tree

4 files changed

+2
-81
lines changed

4 files changed

+2
-81
lines changed

doc/source/whatsnew/v0.24.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ Removal of prior version deprecations/changes
486486

487487
- The ``LongPanel`` and ``WidePanel`` classes have been removed (:issue:`10892`)
488488
- Several private functions were removed from the (non-public) module ``pandas.core.common`` (:issue:`22001`)
489-
-
489+
- Removal of the previously deprecated module ``pandas.core.datetools`` (:issue:`14105`, :issue:`14094`)
490490
-
491491

492492
.. _whatsnew_0240.performance:

pandas/core/api.py

-11
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@
3232
from pandas.core.tools.datetimes import to_datetime
3333
from pandas.core.tools.timedeltas import to_timedelta
3434

35-
# see gh-14094.
36-
from pandas.util._depr_module import _DeprecatedModule
37-
38-
_removals = ['day', 'bday', 'businessDay', 'cday', 'customBusinessDay',
39-
'customBusinessMonthEnd', 'customBusinessMonthBegin',
40-
'monthEnd', 'yearEnd', 'yearBegin', 'bmonthEnd', 'bmonthBegin',
41-
'cbmonthEnd', 'cbmonthBegin', 'bquarterEnd', 'quarterEnd',
42-
'byearEnd', 'week']
43-
datetools = _DeprecatedModule(deprmod='pandas.core.datetools',
44-
removals=_removals)
45-
4635
from pandas.core.config import (get_option, set_option, reset_option,
4736
describe_option, option_context, options)
4837

pandas/core/datetools.py

-55
This file was deleted.

pandas/tests/api/test_api.py

+1-14
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class TestPDApi(Base):
3535
'util', 'options', 'io']
3636

3737
# these are already deprecated; awaiting removal
38-
deprecated_modules = ['datetools', 'parser', 'json', 'lib', 'tslib']
38+
deprecated_modules = ['parser', 'json', 'lib', 'tslib']
3939

4040
# misc
4141
misc = ['IndexSlice', 'NaT']
@@ -127,19 +127,6 @@ def test_testing(self):
127127
self.check(testing, self.funcs)
128128

129129

130-
class TestDatetoolsDeprecation(object):
131-
132-
def test_deprecation_access_func(self):
133-
with tm.assert_produces_warning(FutureWarning,
134-
check_stacklevel=False):
135-
pd.datetools.to_datetime('2016-01-01')
136-
137-
def test_deprecation_access_obj(self):
138-
with tm.assert_produces_warning(FutureWarning,
139-
check_stacklevel=False):
140-
pd.datetools.monthEnd
141-
142-
143130
class TestTopLevelDeprecations(object):
144131

145132
# top-level API deprecations

0 commit comments

Comments
 (0)