Skip to content

Commit 2f748d2

Browse files
committed
move pandas.api.lib.infer_dtype -> pandas.api.types
1 parent 424d411 commit 2f748d2

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

pandas/tests/api/test_lib.py

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

pandas/tests/api/test_types.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# -*- coding: utf-8 -*-
22

3+
from warnings import catch_warnings
34
import numpy as np
45

6+
import pandas
57
from pandas.core import common as com
68
from pandas.api import types
79
from pandas.util import testing as tm
@@ -82,3 +84,10 @@ def test_removed_from_core_common(self):
8284
for t in ['is_null_datelike_scalar',
8385
'ensure_float']:
8486
self.assertRaises(AttributeError, lambda: getattr(com, t))
87+
88+
89+
def test_moved_infer_dtype():
90+
91+
with catch_warnings(record=True):
92+
e = pandas.lib.infer_dtype('foo')
93+
assert e is not None

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,6 @@ def pxd(name):
636636
packages=['pandas',
637637
'pandas.api',
638638
'pandas.api.types',
639-
'pandas.api.lib',
640639
'pandas.compat',
641640
'pandas.compat.numpy',
642641
'pandas.core',

0 commit comments

Comments
 (0)