Skip to content

Commit 97cdf51

Browse files
committed
fix docstring
1 parent 1d4827f commit 97cdf51

File tree

2 files changed

+3
-2
lines changed
  • bigframes/core/indexes
  • third_party/bigframes_vendored/pandas/core/indexes

2 files changed

+3
-2
lines changed

bigframes/core/indexes/base.py

Lines changed: 2 additions & 1 deletion
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-
result_series = bigframes.series.Series(mask_block)
333+
mask_block = mask_block.reset_index(drop=True)
334334
# Ensure correct dtype and name to match pandas behavior
335+
result_series = bigframes.series.Series(mask_block)
335336
return result_series.astype("boolean")
336337

337338
def _get_monotonic_slice(

third_party/bigframes_vendored/pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ def get_loc(
767767
1 True
768768
2 False
769769
3 True
770-
dtype: boolean
770+
Name: nan, dtype: boolean
771771
772772
Args:
773773
key: Label to get the location for.

0 commit comments

Comments
 (0)