Skip to content

Commit 589a89e

Browse files
authored
CLN: remove panel compat shim (pandas-dev#37983)
1 parent fa0e405 commit 589a89e

File tree

9 files changed

+5
-32
lines changed

9 files changed

+5
-32
lines changed

ci/deps/travis-37-locale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies:
3434
- pyarrow>=0.17
3535
- pytables>=3.5.1
3636
- scipy
37-
- xarray=0.12.0
37+
- xarray=0.12.3
3838
- xlrd
3939
- xlsxwriter
4040
- xlwt

doc/source/getting_started/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ pyxlsb 1.0.6 Reading for xlsb files
284284
qtpy Clipboard I/O
285285
s3fs 0.4.0 Amazon S3 access
286286
tabulate 0.8.3 Printing in Markdown-friendly format (see `tabulate`_)
287-
xarray 0.12.0 pandas-like API for N-dimensional data
287+
xarray 0.12.3 pandas-like API for N-dimensional data
288288
xclip Clipboard I/O on linux
289289
xlrd 1.2.0 Excel reading
290290
xlwt 1.3.0 Excel writing

doc/source/reference/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public functions related to data types in pandas.
3030
series
3131
frame
3232
arrays
33-
panel
3433
indexing
3534
offset_frequency
3635
window

doc/source/reference/panel.rst

-10
This file was deleted.

doc/source/whatsnew/v1.2.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ I/O
664664
- Parse missing values using :func:`read_json` with ``dtype=False`` to ``NaN`` instead of ``None`` (:issue:`28501`)
665665
- :meth:`read_fwf` was inferring compression with ``compression=None`` which was not consistent with the other :meth:``read_*`` functions (:issue:`37909`)
666666
- :meth:`DataFrame.to_html` was ignoring ``formatters`` argument for ``ExtensionDtype`` columns (:issue:`36525`)
667+
- Bumped minimum xarray version to 0.12.3 to avoid reference to the removed ``Panel`` class (:issue:`27101`)
667668

668669
Period
669670
^^^^^^

pandas/__init__.py

+1-16
Original file line numberDiff line numberDiff line change
@@ -189,25 +189,10 @@
189189

190190

191191
# GH 27101
192-
# TODO: remove Panel compat in 1.0
193192
def __getattr__(name):
194193
import warnings
195194

196-
if name == "Panel":
197-
198-
warnings.warn(
199-
"The Panel class is removed from pandas. Accessing it "
200-
"from the top-level namespace will also be removed in the next version",
201-
FutureWarning,
202-
stacklevel=2,
203-
)
204-
205-
class Panel:
206-
pass
207-
208-
return Panel
209-
210-
elif name == "datetime":
195+
if name == "datetime":
211196
warnings.warn(
212197
"The pandas.datetime class is deprecated "
213198
"and will be removed from pandas in a future version. "

pandas/compat/_optional.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"sqlalchemy": "1.2.8",
2626
"tables": "3.5.1",
2727
"tabulate": "0.8.3",
28-
"xarray": "0.12.0",
28+
"xarray": "0.12.3",
2929
"xlrd": "1.2.0",
3030
"xlwt": "1.3.0",
3131
"xlsxwriter": "1.0.2",

pandas/tests/test_downstream.py

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def test_dask(df):
4141
assert ddf.compute() is not None
4242

4343

44-
@pytest.mark.filterwarnings("ignore:Panel class is removed")
4544
def test_xarray(df):
4645

4746
xarray = import_module("xarray") # noqa

scripts/validate_rst_title_capitalization.py

-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@
138138
"Google",
139139
"CategoricalDtype",
140140
"UTC",
141-
"Panel",
142141
"False",
143142
"Styler",
144143
"os",

0 commit comments

Comments
 (0)