Skip to content

Commit df18c3b

Browse files
committed
Remove is_extension, is_bool
Remove inherited convert
1 parent 7913186 commit df18c3b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

pandas/core/internals.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class Block(PandasObject):
9898
is_object = False
9999
is_categorical = False
100100
is_sparse = False
101-
is_extension = False
102101
_box_to_block_values = True
103102
_can_hold_na = False
104103
_can_consolidate = True
@@ -1807,9 +1806,6 @@ class ExtensionBlock(NonConsolidatableMixIn, Block):
18071806
18081807
ExtensionArrays are limited to 1-D.
18091808
"""
1810-
is_extension = True
1811-
is_bool = False
1812-
18131809
def __init__(self, values, placement, ndim=None):
18141810
self._holder = type(values)
18151811
super(ExtensionBlock, self).__init__(values, placement, ndim=ndim)
@@ -1857,11 +1853,6 @@ def _can_hold_element(self, element):
18571853
# We're doing the same as CategoricalBlock here.
18581854
return True
18591855

1860-
def convert(self, copy=True, **kwargs):
1861-
# We're dedicated to a type, we don't convert.
1862-
# Taken from CategoricalBlock / Block.
1863-
return self.copy() if copy else self
1864-
18651856
def _slice(self, slicer):
18661857
""" return a slice of my values """
18671858

@@ -2417,6 +2408,7 @@ def __init__(self, values, placement, ndim=None):
24172408
super(CategoricalBlock, self).__init__(_maybe_to_categorical(values),
24182409
placement=placement,
24192410
ndim=ndim)
2411+
24202412
@property
24212413
def array_dtype(self):
24222414
""" the dtype to return if I want to construct this block as an

0 commit comments

Comments
 (0)