Skip to content

REF: Remove internals.base #57208

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 1 commit into from
Feb 2, 2024
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
6 changes: 3 additions & 3 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@

from pandas.core.groupby.generic import DataFrameGroupBy
from pandas.core.interchange.dataframe_protocol import DataFrame as DataFrameXchg
from pandas.core.internals import SingleDataManager
from pandas.core.internals.managers import SingleBlockManager

from pandas.io.formats.style import Styler

Expand Down Expand Up @@ -4530,14 +4530,14 @@ def _ensure_valid_index(self, value) -> None:

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

def _box_col_values(self, values: SingleDataManager, loc: int) -> Series:
def _box_col_values(self, values: SingleBlockManager, loc: int) -> Series:
"""
Provide boxed values for a column.
"""
# Lookup in columns so that if e.g. a str datetime was passed
# we attach the Timestamp object as the name.
name = self.columns[loc]
# We get index=self.index bc values is a SingleDataManager
# We get index=self.index bc values is a SingleBlockManager
obj = self._constructor_sliced_from_mgr(values, axes=values.axes)
obj._name = name
return obj.__finalize__(self)
Expand Down
6 changes: 0 additions & 6 deletions pandas/core/internals/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from pandas.core.internals.api import make_block # 2023-09-18 pyarrow uses this
from pandas.core.internals.base import (
DataManager,
SingleDataManager,
)
from pandas.core.internals.concat import concatenate_managers
from pandas.core.internals.managers import (
BlockManager,
Expand All @@ -14,9 +10,7 @@
"DatetimeTZBlock", # pylint: disable=undefined-all-variable
"ExtensionBlock", # pylint: disable=undefined-all-variable
"make_block",
"DataManager",
"BlockManager",
"SingleDataManager",
"SingleBlockManager",
"concatenate_managers",
]
Expand Down
Loading