Skip to content

Commit 3912a38

Browse files
COMPAT: add back block manager constructors to pandas.core.internals API (#33892)
1 parent 90d8de2 commit 3912a38

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pandas/core/internals/__init__.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
make_block,
1515
)
1616
from pandas.core.internals.concat import concatenate_block_managers
17-
from pandas.core.internals.managers import BlockManager, SingleBlockManager
17+
from pandas.core.internals.managers import (
18+
BlockManager,
19+
SingleBlockManager,
20+
create_block_manager_from_arrays,
21+
create_block_manager_from_blocks,
22+
)
1823

1924
__all__ = [
2025
"Block",
@@ -33,4 +38,7 @@
3338
"BlockManager",
3439
"SingleBlockManager",
3540
"concatenate_block_managers",
41+
# those two are preserved here for downstream compatibility (GH-33892)
42+
"create_block_manager_from_arrays",
43+
"create_block_manager_from_blocks",
3644
]

0 commit comments

Comments
 (0)