-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Improved duck array wrapping #9798
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
Changes from 1 commit
fd6b339
893408c
f7866ce
90037fe
5ba1a2f
6225ae3
e2911c2
2ac37f9
1cc344b
69080a5
372439c
0eef2cb
6739504
9e6d6f8
e721011
1fe4131
205c199
7752088
c8d4e5e
e67a819
f306768
18ebdcd
f51e3fb
121af9e
472ae7e
5aa4a39
390df6f
f6074d2
561f21b
bfd6aeb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,7 +168,8 @@ def isnull(data): | |
) | ||
): | ||
# these types cannot represent missing values | ||
return full_like(data, dtype=xp.bool, fill_value=False) | ||
dtype = xp.bool_ if hasattr(xp, "bool_") else xp.bool | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do, but also |
||
return full_like(data, dtype=dtype, fill_value=False) | ||
else: | ||
# at this point, array should have dtype=object | ||
if isinstance(data, np.ndarray) or is_extension_array_dtype(data): | ||
|
Uh oh!
There was an error while loading. Please reload this page.