-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
DEPR: idxmin/idxmax with all-NA #54226
Conversation
Thanks @jbrockmendel |
* DEPR: idxmin/idxmax with all-NA * Fix doctests
* DEPR: idxmin/idxmax with all-NA * Fix doctests
* DEPR: idxmin/idxmax with all-NA * Fix doctests
* DEPR: idxmin/idxmax with all-NA * Fix doctests Co-authored-by: jbrockmendel <jbrockmendel@gmail.com>
* DEPR: idxmin/idxmax with all-NA * Fix doctests
* DEPR: idxmin/idxmax with all-NA * Fix doctests Co-authored-by: jbrockmendel <jbrockmendel@gmail.com>
* DEPR: idxmin/idxmax with all-NA * Fix doctests
* DEPR: idxmin/idxmax with all-NA * Fix doctests Co-authored-by: jbrockmendel <jbrockmendel@gmail.com>
Am I understanding this correctly that I'm supposed to write this now each and every time I use s = pd.Series([None])
if not s.isnull().all():
m = s.idxmax()
else:
m = np.nan instead of just this with the originally promised behavior of "If the entire Series is NA, the result will be NA." s = pd.Series([None])
m = s.idxmax() this is annoyingly verbose. Or what is the correct way to approach this? |
Not only is it verbose, I find it less intuitive especially considering the parameter skipna.
|
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.As discussed in last week's dev call.