Skip to content

Commit 0dee8b1

Browse files
committed
add pandas.api.lib
add infer_dtype to pandas.api.lib
1 parent 79581ff commit 0dee8b1

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

pandas/api/lib/__init__.py

+5
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

+11
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

0 commit comments

Comments
 (0)