@@ -98,7 +98,6 @@ class Block(PandasObject):
98
98
is_object = False
99
99
is_categorical = False
100
100
is_sparse = False
101
- is_extension = False
102
101
_box_to_block_values = True
103
102
_can_hold_na = False
104
103
_can_consolidate = True
@@ -1807,9 +1806,6 @@ class ExtensionBlock(NonConsolidatableMixIn, Block):
1807
1806
1808
1807
ExtensionArrays are limited to 1-D.
1809
1808
"""
1810
- is_extension = True
1811
- is_bool = False
1812
-
1813
1809
def __init__ (self , values , placement , ndim = None ):
1814
1810
self ._holder = type (values )
1815
1811
super (ExtensionBlock , self ).__init__ (values , placement , ndim = ndim )
@@ -1857,11 +1853,6 @@ def _can_hold_element(self, element):
1857
1853
# We're doing the same as CategoricalBlock here.
1858
1854
return True
1859
1855
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
-
1865
1856
def _slice (self , slicer ):
1866
1857
""" return a slice of my values """
1867
1858
@@ -2417,6 +2408,7 @@ def __init__(self, values, placement, ndim=None):
2417
2408
super (CategoricalBlock , self ).__init__ (_maybe_to_categorical (values ),
2418
2409
placement = placement ,
2419
2410
ndim = ndim )
2411
+
2420
2412
@property
2421
2413
def array_dtype (self ):
2422
2414
""" the dtype to return if I want to construct this block as an
0 commit comments