@@ -1241,7 +1241,7 @@ def _concat_objects(
1241
1241
indexer , _ = result .index .get_indexer_non_unique (target )
1242
1242
result = result .take (indexer , axis = 0 )
1243
1243
else :
1244
- result = result .reindex (ax , axis = 0 , copy = False )
1244
+ result = result .reindex (ax , axis = 0 )
1245
1245
1246
1246
else :
1247
1247
result = concat (values , axis = 0 )
@@ -1269,18 +1269,18 @@ def _set_result_index_ordered(
1269
1269
1270
1270
if self ._grouper .is_monotonic and not self ._grouper .has_dropped_na :
1271
1271
# shortcut if we have an already ordered grouper
1272
- result = result .set_axis (index , axis = 0 , copy = False )
1272
+ result = result .set_axis (index , axis = 0 )
1273
1273
return result
1274
1274
1275
1275
# row order is scrambled => sort the rows by position in original index
1276
1276
original_positions = Index (self ._grouper .result_ilocs )
1277
- result = result .set_axis (original_positions , axis = 0 , copy = False )
1277
+ result = result .set_axis (original_positions , axis = 0 )
1278
1278
result = result .sort_index (axis = 0 )
1279
1279
if self ._grouper .has_dropped_na :
1280
1280
# Add back in any missing rows due to dropna - index here is integral
1281
1281
# with values referring to the row of the input so can use RangeIndex
1282
1282
result = result .reindex (RangeIndex (len (index )), axis = 0 )
1283
- result = result .set_axis (index , axis = 0 , copy = False )
1283
+ result = result .set_axis (index , axis = 0 )
1284
1284
1285
1285
return result
1286
1286
@@ -1913,7 +1913,7 @@ def _wrap_transform_fast_result(self, result: NDFrameT) -> NDFrameT:
1913
1913
1914
1914
# for each col, reshape to size of original frame by take operation
1915
1915
ids = self ._grouper .ids
1916
- result = result .reindex (self ._grouper .result_index , axis = 0 , copy = False )
1916
+ result = result .reindex (self ._grouper .result_index , axis = 0 )
1917
1917
1918
1918
if self .obj .ndim == 1 :
1919
1919
# i.e. SeriesGroupBy
0 commit comments