Skip to content

Commit 8ed6d0b

Browse files
committed
add pandas.api.lib
add infer_dtype to pandas.api.lib
1 parent 94720d9 commit 8ed6d0b

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

pandas/api/lib/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# flake8: noqa
2+
3+
""" public toolkit API """
4+
5+
from pandas._libs.lib import infer_dtype

pandas/tests/api/test_lib.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
3+
import pytest
4+
import pandas # noqa
5+
6+
7+
@pytest.mark.parametrize('f', ['infer_dtype'])
8+
def test_importable(f):
9+
from pandas.api import lib
10+
e = getattr(lib, f)
11+
assert e is not None

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ def pxd(name):
630630
packages=['pandas',
631631
'pandas.api',
632632
'pandas.api.types',
633+
'pandas.api.lib',
633634
'pandas.compat',
634635
'pandas.compat.numpy',
635636
'pandas.computation',

0 commit comments

Comments
 (0)