Skip to content

Commit

Permalink
DEPR: Removing previously deprecated datetools module (pandas-dev#6581)…
Browse files Browse the repository at this point in the history
  • Loading branch information
datapythonista authored and dberenbaum committed Aug 3, 2018
1 parent dea38dd commit 6433d65
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 81 deletions.
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.24.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ Removal of prior version deprecations/changes

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

.. _whatsnew_0240.performance:
Expand Down
11 changes: 0 additions & 11 deletions pandas/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@
from pandas.core.tools.datetimes import to_datetime
from pandas.core.tools.timedeltas import to_timedelta

# see gh-14094.
from pandas.util._depr_module import _DeprecatedModule

_removals = ['day', 'bday', 'businessDay', 'cday', 'customBusinessDay',
'customBusinessMonthEnd', 'customBusinessMonthBegin',
'monthEnd', 'yearEnd', 'yearBegin', 'bmonthEnd', 'bmonthBegin',
'cbmonthEnd', 'cbmonthBegin', 'bquarterEnd', 'quarterEnd',
'byearEnd', 'week']
datetools = _DeprecatedModule(deprmod='pandas.core.datetools',
removals=_removals)

from pandas.core.config import (get_option, set_option, reset_option,
describe_option, option_context, options)

Expand Down
55 changes: 0 additions & 55 deletions pandas/core/datetools.py

This file was deleted.

15 changes: 1 addition & 14 deletions pandas/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TestPDApi(Base):
'util', 'options', 'io']

# these are already deprecated; awaiting removal
deprecated_modules = ['datetools', 'parser', 'json', 'lib', 'tslib']
deprecated_modules = ['parser', 'json', 'lib', 'tslib']

# misc
misc = ['IndexSlice', 'NaT']
Expand Down Expand Up @@ -127,19 +127,6 @@ def test_testing(self):
self.check(testing, self.funcs)


class TestDatetoolsDeprecation(object):

def test_deprecation_access_func(self):
with tm.assert_produces_warning(FutureWarning,
check_stacklevel=False):
pd.datetools.to_datetime('2016-01-01')

def test_deprecation_access_obj(self):
with tm.assert_produces_warning(FutureWarning,
check_stacklevel=False):
pd.datetools.monthEnd


class TestTopLevelDeprecations(object):

# top-level API deprecations
Expand Down

0 comments on commit 6433d65

Please sign in to comment.