Skip to content

Commit be4a3e7

Browse files
committed
DEPR: change Panel DeprecationWarning -> FutureWarning
closes pandas-dev#18324
1 parent 787ab55 commit be4a3e7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

doc/source/whatsnew/v0.23.0.txt

+2
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ Deprecations
288288
- ``Series.valid`` is deprecated. Use :meth:`Series.dropna` instead (:issue:`18800`).
289289
- :func:`read_excel` has deprecated the ``skip_footer`` parameter. Use ``skipfooter`` instead (:issue:`18836`)
290290
- The ``is_copy`` attribute is deprecated and will be removed in a future version (:issue:`18801`).
291+
- ``Panel`` is now a ``FutureWarning``, previsouly a ``DeprecationWarning`` and will be removed in a future version (:issue:`18324`)
292+
291293

292294
.. _whatsnew_0230.prior_deprecations:
293295

pandas/core/panel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def __init__(self, data=None, items=None, major_axis=None, minor_axis=None,
151151
"http://xarray.pydata.org/en/stable/.\n"
152152
"Pandas provides a `.to_xarray()` method to help "
153153
"automate this conversion.\n",
154-
DeprecationWarning, stacklevel=3)
154+
FutureWarning, stacklevel=3)
155155

156156
self._init_data(data=data, items=items, major_axis=major_axis,
157157
minor_axis=minor_axis, copy=copy, dtype=dtype)

pandas/tests/generic/test_label_or_level_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def df_duplabels(df):
4646

4747
@pytest.fixture
4848
def panel():
49-
with tm.assert_produces_warning(DeprecationWarning,
49+
with tm.assert_produces_warning(FutureWarning,
5050
check_stacklevel=False):
5151
return pd.Panel()
5252

0 commit comments

Comments
 (0)