Skip to content

Commit 0a37067

Browse files
jorisvandenbosschejreback
authored andcommitted
DEPR: correct locations to access public tslib objects (pandas-dev#15897)
1 parent ca8ef49 commit 0a37067

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@
6464
parser = _DeprecatedModule(deprmod='pandas.parser', deprmodto='pandas.io.libparsers')
6565
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas._libs.lib',
6666
moved={'infer_dtype': 'pandas.api.lib.infer_dtype'})
67-
tslib = _DeprecatedModule(deprmod='pandas.tslib', deprmodto='pandas._libs.tslib')
67+
tslib = _DeprecatedModule(deprmod='pandas.tslib', deprmodto='pandas._libs.tslib',
68+
moved={'Timestamp': 'pandas.Timestamp',
69+
'Timedelta': 'pandas.Timedelta',
70+
'NaT': 'pandas.NaT',
71+
'OutOfBoundsDatetime': 'pandas.errors.OutOfBoundsDatetime'})
6872

6973
# use the closest tagged version if possible
7074
from ._version import get_versions

0 commit comments

Comments
 (0)