-
-
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
Dispatch pd.is_na for scalar extension value #27825
Comments
One workaround would be to add a |
Or: don't use such a custom NaS, but a default NA provided by pandas ? |
We need to have a discussion about whether we want more or fewer NAs. If we
want one, then yes that would be an option.
…On Thu, Aug 8, 2019 at 3:31 PM Joris Van den Bossche < ***@***.***> wrote:
Or: don't use such a custom NaS, but a default NA provided by pandas ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27825?email_source=notifications&email_token=AAKAOITGUPOYE77XZ3OVTHLQDR7ATA5CNFSM4IKNWL2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD342DEQ#issuecomment-519676306>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIT5NUZDQUAA6FNOT4DQDR7ATANCNFSM4IKNWL2A>
.
|
I have been pondering over a roadmap discussion post about that the last week, so I suppose I should try to write that :) |
It'd be good to do that before the meeting next week :) |
I couldn't finish it yet, but a very rough sketch can already be found here: https://hackmd.io/gPDsgTsKRlyHfoCRR1i_ng (in case you already want to think on it) |
Right now, I don't believe there's a way for an ExtensionDtype to declare a custom scalar NA value and have
pd.isna(scalar)
do the right thing.That should be
True
. In https://github.com/pandas-dev/pandas/blob/master/pandas/core/dtypes/missing.py#L131-L132 we go straight tolib missing.checknull(obj)
for scalar values.The text was updated successfully, but these errors were encountered: