@@ -216,7 +216,7 @@ def get_block_values_for_json(self) -> np.ndarray:
216
216
"""
217
217
This is used in the JSON C code.
218
218
"""
219
- # TODO(2DEA ): reshape will be unnecessary with 2D EAs
219
+ # TODO(EA2D ): reshape will be unnecessary with 2D EAs
220
220
return np .asarray (self .values ).reshape (self .shape )
221
221
222
222
@property
@@ -341,6 +341,7 @@ def apply(self, func, **kwargs) -> List["Block"]:
341
341
def _split_op_result (self , result ) -> List ["Block" ]:
342
342
# See also: split_and_operate
343
343
if is_extension_array_dtype (result ) and result .ndim > 1 :
344
+ # TODO(EA2D): unnecessary with 2D EAs
344
345
# if we get a 2D ExtensionArray, we need to split it into 1D pieces
345
346
nbs = []
346
347
for i , loc in enumerate (self .mgr_locs ):
@@ -1548,7 +1549,7 @@ def __init__(self, values, placement, ndim=None):
1548
1549
super ().__init__ (values , placement , ndim = ndim )
1549
1550
1550
1551
if self .ndim == 2 and len (self .mgr_locs ) != 1 :
1551
- # TODO(2DEA ): check unnecessary with 2D EAs
1552
+ # TODO(EA2D ): check unnecessary with 2D EAs
1552
1553
raise AssertionError ("block.size != values.size" )
1553
1554
1554
1555
@property
@@ -2273,7 +2274,7 @@ def equals(self, other) -> bool:
2273
2274
def quantile (self , qs , interpolation = "linear" , axis = 0 ):
2274
2275
naive = self .values .view ("M8[ns]" )
2275
2276
2276
- # kludge for 2D block with 1D values
2277
+ # TODO(EA2D): kludge for 2D block with 1D values
2277
2278
naive = naive .reshape (self .shape )
2278
2279
2279
2280
blk = self .make_block (naive )
@@ -2398,7 +2399,7 @@ def f(mask, val, idx):
2398
2399
copy = copy ,
2399
2400
)
2400
2401
if isinstance (values , np .ndarray ):
2401
- # TODO: allow EA once reshape is supported
2402
+ # TODO(EA2D) : allow EA once reshape is supported
2402
2403
values = values .reshape (shape )
2403
2404
2404
2405
return values
0 commit comments