Skip to content

Commit 7ed537a

Browse files
committed
reset index of result
1 parent 5d6711e commit 7ed537a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bigframes/core/indexes/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ def get_loc(self, key) -> typing.Union[int, slice, "bigframes.series.Series"]:
329329
else:
330330
# Return boolean mask for non-monotonic duplicates
331331
mask_block = windowed_block.select_columns([match_col_id])
332+
# Reset the index to use positional integers instead of original index values
333+
mask_block = mask_block.reset_index(drop=True)
332334
return bigframes.series.Series(mask_block)
333335

334336
def _get_monotonic_slice(

0 commit comments

Comments
 (0)