Skip to content

Commit f140bbd

Browse files
committed
CLN: remove NumpyBlock from the semi-public API
1 parent 10f9c37 commit f140bbd

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

pandas/core/internals/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
Block,
1212
DatetimeTZBlock,
1313
ExtensionBlock,
14-
NumpyBlock,
1514
)
1615
from pandas.core.internals.concat import concatenate_managers
1716
from pandas.core.internals.managers import (
@@ -24,7 +23,6 @@
2423
"Block",
2524
"DatetimeTZBlock",
2625
"ExtensionBlock",
27-
"NumpyBlock",
2826
"make_block",
2927
"DataManager",
3028
"ArrayManager",
@@ -46,7 +44,7 @@ def __getattr__(name: str):
4644
if name in ["NumericBlock", "ObjectBlock"]:
4745
warnings.warn(
4846
f"{name} is deprecated and will be removed in a future version. "
49-
"Use NumpyBlock instead.",
47+
"Use public APIs instead.",
5048
DeprecationWarning,
5149
stacklevel=find_stack_level(),
5250
)

pandas/tests/extension/base/casting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pandas.util._test_decorators as td
55

66
import pandas as pd
7-
from pandas.core.internals import NumpyBlock
7+
from pandas.core.internals.blocks import NumpyBlock
88
from pandas.tests.extension.base.base import BaseExtensionTests
99

1010

pandas/tests/frame/test_block_internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
option_context,
2121
)
2222
import pandas._testing as tm
23-
from pandas.core.internals import NumpyBlock
23+
from pandas.core.internals.blocks import NumpyBlock
2424

2525
# Segregated collection of methods that require the BlockManager internal data
2626
# structure

pandas/tests/internals/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def test_namespace():
2929
"Block",
3030
"DatetimeTZBlock",
3131
"ExtensionBlock",
32-
"NumpyBlock",
3332
"make_block",
3433
"DataManager",
3534
"ArrayManager",

0 commit comments

Comments
 (0)