Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix docstring formatting on maybe_align_index #938

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
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 narwhals/stable/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ def is_ordered_categorical(series: Series) -> bool:

def maybe_align_index(lhs: T, rhs: Series | DataFrame[Any] | LazyFrame[Any]) -> T:
"""
Align `lhs` to the Index of `rhs, if they're both pandas-like.
Align `lhs` to the Index of `rhs`, if they're both pandas-like.

Notes:
This is only really intended for backwards-compatibility purposes,
Expand Down
2 changes: 1 addition & 1 deletion narwhals/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def validate_laziness(items: Iterable[Any]) -> None:

def maybe_align_index(lhs: T, rhs: Series | BaseFrame[Any]) -> T:
"""
Align `lhs` to the Index of `rhs, if they're both pandas-like.
Align `lhs` to the Index of `rhs`, if they're both pandas-like.

Notes:
This is only really intended for backwards-compatibility purposes,
Expand Down
Loading