Skip to content

Commit 41eec5c

Browse files
committed
add in IntervalDtyp
1 parent e6a927c commit 41eec5c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pandas/api/types/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
""" public toolkit API """
22

33
from pandas.core.dtypes.api import * # noqa
4-
from pandas.core.dtypes.dtypes import CategoricalDtype, DatetimeTZDtype, PeriodDtype # noqa
4+
from pandas.core.dtypes.dtypes import (CategoricalDtype, # noqa
5+
DatetimeTZDtype,
6+
PeriodDtype,
7+
IntervalDtype)
58
from pandas.core.dtypes.concat import union_categoricals # noqa
69
from pandas._libs.lib import infer_dtype # noqa
710
del np # noqa

pandas/tests/api/test_types.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class TestTypes(Base, tm.TestCase):
3333
'is_list_like', 'is_hashable',
3434
'is_named_tuple', 'is_sequence',
3535
'pandas_dtype', 'union_categoricals', 'infer_dtype']
36-
dtypes = ['CategoricalDtype', 'DatetimeTZDtype', 'PeriodDtype']
36+
dtypes = ['CategoricalDtype', 'DatetimeTZDtype',
37+
'PeriodDtype', 'IntervalDtype']
3738

3839
def test_types(self):
3940

0 commit comments

Comments
 (0)