@@ -1178,8 +1178,6 @@ def value_getitem(placement):
1178
1178
unfit_count = len (unfit_idxr )
1179
1179
1180
1180
new_blocks : list [Block ] = []
1181
- # TODO(CoW) is this always correct to assume that the new_blocks
1182
- # are not referencing anything else?
1183
1181
if value_is_extension_type :
1184
1182
# This code (ab-)uses the fact that EA blocks contain only
1185
1183
# one item.
@@ -1377,7 +1375,6 @@ def insert(self, loc: int, item: Hashable, value: ArrayLike, refs=None) -> None:
1377
1375
value = ensure_block_shape (value , ndim = self .ndim )
1378
1376
1379
1377
bp = BlockPlacement (slice (loc , loc + 1 ))
1380
- # TODO(CoW) do we always "own" the passed `value`?
1381
1378
block = new_block_2d (values = value , placement = bp , refs = refs )
1382
1379
1383
1380
if not len (self .blocks ):
@@ -1660,7 +1657,6 @@ def as_array(
1660
1657
"""
1661
1658
passed_nan = lib .is_float (na_value ) and isna (na_value )
1662
1659
1663
- # TODO(CoW) handle case where resulting array is a view
1664
1660
if len (self .blocks ) == 0 :
1665
1661
arr = np .empty (self .shape , dtype = float )
1666
1662
return arr .transpose ()
@@ -2198,7 +2194,6 @@ def _form_blocks(arrays: list[ArrayLike], consolidate: bool, refs: list) -> list
2198
2194
2199
2195
# when consolidating, we can ignore refs (either stacking always copies,
2200
2196
# or the EA is already copied in the calling dict_to_mgr)
2201
- # TODO(CoW) check if this is also valid for rec_array_to_mgr
2202
2197
2203
2198
# group by dtype
2204
2199
grouper = itertools .groupby (tuples , _grouping_func )
0 commit comments