File tree 4 files changed +9
-11
lines changed
4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -1969,15 +1969,14 @@ Dtype introspection
1969
1969
1970
1970
Iterable introspection
1971
1971
1972
+ .. autosummary ::
1973
+ :toctree: generated/
1974
+
1972
1975
api.types.is_dict_like
1973
1976
api.types.is_file_like
1974
1977
api.types.is_list_like
1975
1978
api.types.is_named_tuple
1976
1979
api.types.is_iterator
1977
- api.types.is_sequence
1978
-
1979
- .. autosummary ::
1980
- :toctree: generated/
1981
1980
1982
1981
Scalar introspection
1983
1982
Original file line number Diff line number Diff line change @@ -1521,7 +1521,7 @@ Other Deprecations
1521
1521
* ``pd.match()``, is removed.
1522
1522
* ``pd.groupby()``, replaced by using the ``.groupby()`` method directly on a ``Series/DataFrame``
1523
1523
* ``pd.get_store()``, replaced by a direct call to ``pd.HDFStore(...)``
1524
- - ``is_any_int_dtype`` and ``is_floating_dtype `` are deprecated from ``pandas.api.types`` (:issue:`16042`)
1524
+ - ``is_any_int_dtype``, ``is_floating_dtype``, and ``is_sequence `` are deprecated from ``pandas.api.types`` (:issue:`16042`)
1525
1525
1526
1526
.. _whatsnew_0200.prior_deprecations:
1527
1527
Original file line number Diff line number Diff line change 57
57
is_file_like ,
58
58
is_list_like ,
59
59
is_hashable ,
60
- is_named_tuple ,
61
- is_sequence )
60
+ is_named_tuple )
62
61
63
62
64
63
# deprecated
65
64
m = sys .modules ['pandas.core.dtypes.api' ]
66
65
67
- for t in ['is_any_int_dtype' , 'is_floating_dtype' ]:
66
+ for t in ['is_any_int_dtype' , 'is_floating_dtype' , 'is_sequence' ]:
68
67
69
68
def outer (t = t ):
70
69
Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ class TestTypes(Base, tm.TestCase):
31
31
'is_re' , 'is_re_compilable' ,
32
32
'is_dict_like' , 'is_iterator' , 'is_file_like' ,
33
33
'is_list_like' , 'is_hashable' ,
34
- 'is_named_tuple' , 'is_sequence' ,
34
+ 'is_named_tuple' ,
35
35
'pandas_dtype' , 'union_categoricals' , 'infer_dtype' ]
36
- deprecated = ['is_any_int_dtype' , 'is_floating_dtype' ]
36
+ deprecated = ['is_any_int_dtype' , 'is_floating_dtype' , 'is_sequence' ]
37
37
dtypes = ['CategoricalDtype' , 'DatetimeTZDtype' ,
38
38
'PeriodDtype' , 'IntervalDtype' ]
39
39
@@ -90,7 +90,7 @@ def test_removed_from_core_common(self):
90
90
91
91
def test_deprecated_from_api_types (self ):
92
92
93
- for t in [ 'is_any_int_dtype' , 'is_floating_dtype' ] :
93
+ for t in self . deprecated :
94
94
with tm .assert_produces_warning (FutureWarning ,
95
95
check_stacklevel = False ):
96
96
getattr (types , t )(1 )
You can’t perform that action at this time.
0 commit comments