Skip to content

Commit f60b914

Browse files
jrebackjorisvandenbossche
authored andcommitted
CLN: move infer_dtype to pandas.api.types (pandas-dev#16023)
1 parent a25272b commit f60b914

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

pandas/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
moved={'Timestamp': 'pandas.Timestamp',
8080
'Timedelta': 'pandas.Timedelta',
8181
'NaT': 'pandas.NaT',
82-
'infer_dtype': 'pandas.api.lib.infer_dtype'})
82+
'infer_dtype': 'pandas.api.types.infer_dtype'})
8383
tslib = _DeprecatedModule(deprmod='pandas.tslib',
8484
moved={'Timestamp': 'pandas.Timestamp',
8585
'Timedelta': 'pandas.Timedelta',

pandas/api/lib/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

pandas/api/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
from pandas.core.dtypes.api import * # noqa
44
from pandas.core.dtypes.concat import union_categoricals # noqa
5+
from pandas._libs.lib import infer_dtype # noqa
56
del np # noqa

pandas/tests/api/test_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class TestTypes(Base, tm.TestCase):
3030
'is_dict_like', 'is_iterator', 'is_file_like',
3131
'is_list_like', 'is_hashable',
3232
'is_named_tuple', 'is_sequence',
33-
'pandas_dtype', 'union_categoricals']
33+
'pandas_dtype', 'union_categoricals', 'infer_dtype']
3434

3535
def test_types(self):
3636

0 commit comments

Comments
 (0)