Skip to content

Commit 547a81a

Browse files
committed
core.internals member ExtensionBlock
1 parent 234f678 commit 547a81a

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ Removal of prior version deprecations/changes
259259
- Enforced deprecation of :meth:`Series.interpolate` and :meth:`DataFrame.interpolate` for object-dtype (:issue:`57820`)
260260
- Enforced deprecation of :meth:`offsets.Tick.delta`, use ``pd.Timedelta(obj)`` instead (:issue:`55498`)
261261
- Enforced deprecation of ``axis=None`` acting the same as ``axis=0`` in the DataFrame reductions ``sum``, ``prod``, ``std``, ``var``, and ``sem``, passing ``axis=None`` will now reduce over both axes; this is particularly the case when doing e.g. ``numpy.sum(df)`` (:issue:`21597`)
262+
- Enforced deprecation of ``core.internals`` member ``ExtensionBlock`` (:issue:`58467`)
262263
- Enforced deprecation of ``date_parser`` in :func:`read_csv`, :func:`read_table`, :func:`read_fwf`, and :func:`read_excel` in favour of ``date_format`` (:issue:`50601`)
263264
- Enforced deprecation of ``keep_date_col`` keyword in :func:`read_csv` (:issue:`55569`)
264265
- Enforced deprecation of ``quantile`` keyword in :meth:`.Rolling.quantile` and :meth:`.Expanding.quantile`, renamed to ``q`` instead. (:issue:`52550`)

pandas/core/internals/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
__all__ = [
99
"Block",
10-
"DatetimeTZBlock",
1110
"ExtensionBlock",
1211
"make_block",
1312
"BlockManager",
@@ -37,7 +36,6 @@ def __getattr__(name: str):
3736
if name in [
3837
"Block",
3938
"ExtensionBlock",
40-
"DatetimeTZBlock",
4139
]:
4240
warnings.warn(
4341
f"{name} is deprecated and will be removed in a future version. "
@@ -47,11 +45,7 @@ def __getattr__(name: str):
4745
# on hard-coding stacklevel
4846
stacklevel=2,
4947
)
50-
if name == "DatetimeTZBlock":
51-
from pandas.core.internals.blocks import DatetimeTZBlock
52-
53-
return DatetimeTZBlock
54-
elif name == "ExtensionBlock":
48+
if name == "ExtensionBlock":
5549
from pandas.core.internals.blocks import ExtensionBlock
5650

5751
return ExtensionBlock

pandas/tests/internals/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def test_namespace():
4646
[
4747
"Block",
4848
"ExtensionBlock",
49-
"DatetimeTZBlock",
5049
],
5150
)
5251
def test_deprecations(name):

0 commit comments

Comments
 (0)