Skip to content

Commit 53abf20

Browse files
committed
Final panel removal
1 parent b618eb6 commit 53abf20

File tree

8 files changed

+4
-1584
lines changed

8 files changed

+4
-1584
lines changed

pandas/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@
6565

6666
# misc
6767
np, Grouper, factorize, unique, value_counts, NamedAgg,
68-
array, Categorical, set_eng_float_format, Series, DataFrame,
69-
Panel)
68+
array, Categorical, set_eng_float_format, Series, DataFrame)
7069

7170
from pandas.core.sparse.api import (
7271
SparseArray, SparseDataFrame, SparseSeries, SparseDtype)

pandas/core/api.py

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
from pandas.core.series import Series
3737
from pandas.core.frame import DataFrame
38-
from pandas.core.panel import Panel
3938

4039
# TODO: Remove import when statsmodels updates #18264
4140
from pandas.core.reshape.reshape import get_dummies

pandas/core/dtypes/generic.py

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def _check(cls, inst):
4545
ABCDataFrame = create_pandas_abc_type("ABCDataFrame", "_typ", ("dataframe", ))
4646
ABCSparseDataFrame = create_pandas_abc_type("ABCSparseDataFrame", "_subtyp",
4747
("sparse_frame", ))
48-
ABCPanel = create_pandas_abc_type("ABCPanel", "_typ", ("panel",))
4948
ABCSparseSeries = create_pandas_abc_type("ABCSparseSeries", "_subtyp",
5049
('sparse_series',
5150
'sparse_time_series'))

pandas/core/internals/concat.py

-2
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,6 @@ def is_uniform_join_units(join_units):
376376
all(not ju.is_na or ju.block.is_extension for ju in join_units) and
377377
# no blocks with indexers (as then the dimensions do not fit)
378378
all(not ju.indexers for ju in join_units) and
379-
# disregard Panels
380-
all(ju.block.ndim <= 2 for ju in join_units) and
381379
# only use this path when there is something to concatenate
382380
len(join_units) > 1)
383381

pandas/core/internals/managers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
class BlockManager(PandasObject):
4444
"""
45-
Core internal data structure to implement DataFrame, Series, Panel, etc.
45+
Core internal data structure to implement DataFrame, Series, etc.
4646
4747
Manage a bunch of labeled 2D mixed-type ndarrays. Essentially it's a
4848
lightweight blocked set of labeled data to be manipulated by the DataFrame

0 commit comments

Comments
 (0)