-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Add operator.is_none() #115808
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
Comments
For convenience, it might also be nice to have |
Agreed -- I was going to suggest this. It also fits the general pattern of the |
…ython#115814) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
With floating point data, the
float('NaN')
special value is commonly used as a placeholder for missing values. We providemath.isnan
to support stripping out those values prior to sorting or summation:For non-float data, the
None
special value is commonly used as a placeholder for missing values. I propose a new function in the operator module analogous tomath.isnan()
:This helps fulfill a primary use case for the operator module which is to support functional programming with
map()
,filter()
, etc.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
is_none
andis_not_none
operators #115814The text was updated successfully, but these errors were encountered: