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: Removing previously deprecated datetools module (#6581) #19119

Merged
merged 4 commits into from
Aug 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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 @@ -391,7 +391,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