File tree 3 files changed +5
-26
lines changed
3 files changed +5
-26
lines changed Original file line number Diff line number Diff line change 1
1
# flake8: noqa
2
2
3
- import sys
4
-
5
3
from .common import (pandas_dtype ,
6
4
is_dtype_equal ,
7
5
is_extension_type ,
59
57
is_list_like ,
60
58
is_hashable ,
61
59
is_named_tuple )
62
-
63
-
64
- # deprecated
65
- m = sys .modules ['pandas.core.dtypes.api' ]
66
-
67
- for t in ['is_any_int_dtype' , 'is_floating_dtype' , 'is_sequence' ]:
68
-
69
- def outer (t = t ):
70
-
71
- def wrapper (arr_or_dtype ):
72
- import warnings
73
- import pandas
74
- warnings .warn ("{t} is deprecated and will be "
75
- "removed in a future version" .format (t = t ),
76
- FutureWarning , stacklevel = 3 )
77
- return getattr (pandas .core .dtypes .common , t )(arr_or_dtype )
78
- return wrapper
79
-
80
- setattr (m , t , outer (t ))
81
-
82
- del sys , m , t , outer
Original file line number Diff line number Diff line change @@ -796,11 +796,11 @@ def is_dtype_union_equal(source, target):
796
796
def is_any_int_dtype (arr_or_dtype ):
797
797
"""Check whether the provided array or dtype is of an integer dtype.
798
798
799
- .. deprecated:: 0.20.0
800
-
801
799
In this function, timedelta64 instances are also considered "any-integer"
802
800
type objects and will return True.
803
801
802
+ This function is internal and should not be exposed in the public API.
803
+
804
804
Parameters
805
805
----------
806
806
arr_or_dtype : array-like
@@ -1560,6 +1560,8 @@ def is_float_dtype(arr_or_dtype):
1560
1560
"""
1561
1561
Check whether the provided array or dtype is of a float dtype.
1562
1562
1563
+ This function is internal and should not be exposed in the public API.
1564
+
1563
1565
Parameters
1564
1566
----------
1565
1567
arr_or_dtype : array-like
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class TestTypes(Base):
28
28
'is_list_like' , 'is_hashable' , 'is_array_like' ,
29
29
'is_named_tuple' ,
30
30
'pandas_dtype' , 'union_categoricals' , 'infer_dtype' ]
31
- deprecated = ['is_any_int_dtype' , 'is_floating_dtype' , 'is_sequence' ]
31
+ deprecated = []
32
32
dtypes = ['CategoricalDtype' , 'DatetimeTZDtype' ,
33
33
'PeriodDtype' , 'IntervalDtype' ]
34
34
You can’t perform that action at this time.
0 commit comments