-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: implement array_algos.putmask #38793
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
Conversation
pandas/core/array_algos/putmask.py
Outdated
from pandas.core.dtypes.missing import isna_compat | ||
|
||
|
||
def putmask_simple(values: ArrayLike, mask: np.ndarray, value: Any): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returns -> None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
though maybe we should return the array for consistency with putmask_simple?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or rename to putmask_inplace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
though maybe we should return the array for consistency with putmask_simple?
i think not returning anything makes it more obvious that it is inplace
or rename to putmask_inplace
sure
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff