-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Avoid listifying left/right operand in ExtensionArray ops dispatching #22922
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
This specific case of |
Looking at the code, it seems that that case is already working OK, if the |
Hmm is it? I thought that's what cased the NameError. I think we need something like |
Yes, it's what caused the NameError, but this is about the conversion to list? |
Correct. I'm saying we shouldn't even reach that
|
Corner case in pandas master with object-dtype In [1]: import pandas as pd
In [2]: 1 ** pd.Series([None], dtype=object)
Out[2]:
0 NaN
dtype: object That's supposed to be In [4]: 1 ** pd.Series([np.nan])
Out[4]:
0 1.0
dtype: float64 |
@TomAugspurger is that related to the listifying? |
Whoops, got my issues mixed up. That was for #22022 |
We now have the follow code in the ExtensionArray ops dispatching:
pandas/pandas/core/ops.py
Lines 1169 to 1192 in 2f1b842
There are a few places where we convert the values to a list, which should be avoided.
The text was updated successfully, but these errors were encountered: