Skip to content

DOC: fix mask/where docstring alignment note (#61781) #62029

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9946,9 +9946,9 @@ def where(
The {name} method is an application of the if-then idiom. For each
element in the caller, if ``cond`` is ``{cond}`` the
element is used; otherwise the corresponding element from
``other`` is used. If the axis of ``other`` does not align with axis of
``cond`` {klass}, the values of ``cond`` on misaligned index positions
will be filled with {cond_rev}.
``other`` is used. If the axis of ``self`` does not align with axis of
``cond``, misaligned index positions will be filled with the original value
from ``self``.

The signature for :func:`Series.where` or
:func:`DataFrame.where` differs from :func:`numpy.where`.
Expand Down
Loading