Skip to content

Commit fc05632

Browse files
authored
REF: Remove internals.base (#57208)
1 parent b2f2128 commit fc05632

File tree

5 files changed

+314
-429
lines changed

5 files changed

+314
-429
lines changed

pandas/core/frame.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259

260260
from pandas.core.groupby.generic import DataFrameGroupBy
261261
from pandas.core.interchange.dataframe_protocol import DataFrame as DataFrameXchg
262-
from pandas.core.internals import SingleDataManager
262+
from pandas.core.internals.managers import SingleBlockManager
263263

264264
from pandas.io.formats.style import Styler
265265

@@ -4530,14 +4530,14 @@ def _ensure_valid_index(self, value) -> None:
45304530

45314531
self._mgr = self._mgr.reindex_axis(index_copy, axis=1, fill_value=np.nan)
45324532

4533-
def _box_col_values(self, values: SingleDataManager, loc: int) -> Series:
4533+
def _box_col_values(self, values: SingleBlockManager, loc: int) -> Series:
45344534
"""
45354535
Provide boxed values for a column.
45364536
"""
45374537
# Lookup in columns so that if e.g. a str datetime was passed
45384538
# we attach the Timestamp object as the name.
45394539
name = self.columns[loc]
4540-
# We get index=self.index bc values is a SingleDataManager
4540+
# We get index=self.index bc values is a SingleBlockManager
45414541
obj = self._constructor_sliced_from_mgr(values, axes=values.axes)
45424542
obj._name = name
45434543
return obj.__finalize__(self)

pandas/core/internals/__init__.py

-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
from pandas.core.internals.api import make_block # 2023-09-18 pyarrow uses this
2-
from pandas.core.internals.base import (
3-
DataManager,
4-
SingleDataManager,
5-
)
62
from pandas.core.internals.concat import concatenate_managers
73
from pandas.core.internals.managers import (
84
BlockManager,
@@ -14,9 +10,7 @@
1410
"DatetimeTZBlock", # pylint: disable=undefined-all-variable
1511
"ExtensionBlock", # pylint: disable=undefined-all-variable
1612
"make_block",
17-
"DataManager",
1813
"BlockManager",
19-
"SingleDataManager",
2014
"SingleBlockManager",
2115
"concatenate_managers",
2216
]

0 commit comments

Comments
 (0)