Skip to content

Commit 1d4827f

Browse files
committed
change docstring
1 parent b8c9e22 commit 1d4827f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bigframes/core/indexes/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,9 @@ def get_loc(self, key) -> typing.Union[int, slice, "bigframes.series.Series"]:
330330
# Return boolean mask for non-monotonic duplicates
331331
mask_block = windowed_block.select_columns([match_col_id])
332332
# Reset the index to use positional integers instead of original index values
333-
mask_block = mask_block.reset_index(drop=True)
334-
return bigframes.series.Series(mask_block)
333+
result_series = bigframes.series.Series(mask_block)
334+
# Ensure correct dtype and name to match pandas behavior
335+
return result_series.astype("boolean")
335336

336337
def _get_monotonic_slice(
337338
self, filtered_block, row_number_column_id: "ids.ColumnId"

0 commit comments

Comments
 (0)