Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bigframes/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def rename(
block = self._block.with_column_labels([index])
return Series(block)

# arbitrary comment
# rename the index
if isinstance(index, Mapping):
index = typing.cast(Mapping[Any, Any], index)
Expand All @@ -294,7 +295,6 @@ def rename(
block = block.set_index(new_idx_ids, index_labels=block.index.names)

return Series(block)

# rename the Series name
if isinstance(index, typing.Hashable):
index = typing.cast(Optional[str], index)
Expand Down