Skip to content

CLN: remove panel compat shim #37983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/deps/travis-37-locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies:
- pyarrow>=0.17
- pytables>=3.5.1
- scipy
- xarray=0.12.0
- xarray=0.12.3
- xlrd
- xlsxwriter
- xlwt
Expand Down
2 changes: 1 addition & 1 deletion doc/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ pyxlsb 1.0.6 Reading for xlsb files
qtpy Clipboard I/O
s3fs 0.4.0 Amazon S3 access
tabulate 0.8.3 Printing in Markdown-friendly format (see `tabulate`_)
xarray 0.12.0 pandas-like API for N-dimensional data
xarray 0.12.3 pandas-like API for N-dimensional data
xclip Clipboard I/O on linux
xlrd 1.2.0 Excel reading
xlwt 1.3.0 Excel writing
Expand Down
1 change: 0 additions & 1 deletion doc/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public functions related to data types in pandas.
series
frame
arrays
panel
indexing
offset_frequency
window
Expand Down
10 changes: 0 additions & 10 deletions doc/source/reference/panel.rst

This file was deleted.

1 change: 1 addition & 0 deletions doc/source/whatsnew/v1.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ I/O
- Parse missing values using :func:`read_json` with ``dtype=False`` to ``NaN`` instead of ``None`` (:issue:`28501`)
- :meth:`read_fwf` was inferring compression with ``compression=None`` which was not consistent with the other :meth:``read_*`` functions (:issue:`37909`)
- :meth:`DataFrame.to_html` was ignoring ``formatters`` argument for ``ExtensionDtype`` columns (:issue:`36525`)
- Bumped minimum xarray version to 0.12.3 to avoid reference to the removed ``Panel`` class (:issue:`27101`)

Period
^^^^^^
Expand Down
17 changes: 1 addition & 16 deletions pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,25 +189,10 @@


# GH 27101
# TODO: remove Panel compat in 1.0
def __getattr__(name):
import warnings

if name == "Panel":

warnings.warn(
"The Panel class is removed from pandas. Accessing it "
"from the top-level namespace will also be removed in the next version",
FutureWarning,
stacklevel=2,
)

class Panel:
pass

return Panel

elif name == "datetime":
if name == "datetime":
warnings.warn(
"The pandas.datetime class is deprecated "
"and will be removed from pandas in a future version. "
Expand Down
2 changes: 1 addition & 1 deletion pandas/compat/_optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sqlalchemy": "1.2.8",
"tables": "3.5.1",
"tabulate": "0.8.3",
"xarray": "0.12.0",
"xarray": "0.12.3",
"xlrd": "1.2.0",
"xlwt": "1.3.0",
"xlsxwriter": "1.0.2",
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/test_downstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def test_dask(df):
assert ddf.compute() is not None


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

xarray = import_module("xarray") # noqa
Expand Down
1 change: 0 additions & 1 deletion scripts/validate_rst_title_capitalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
"Google",
"CategoricalDtype",
"UTC",
"Panel",
"False",
"Styler",
"os",
Expand Down