-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
ENH: nullable Float32/64 ExtensionArray #34307
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
cddc939
6a1d822
f43f021
ffdd65c
3d189f9
ff3b937
13b8281
4c1d06c
ebbc64d
94be5f2
8cf0d47
f7cc1be
107b083
ba1e62c
879d3e0
ed9a14b
c16ca4c
aa45aac
25eb1ba
b78c041
45b98f2
314b6a9
a157806
81456f9
71009c3
56d2311
65a2060
8b36098
7f3e965
66d6939
e0c9d9a
d37b815
44e699a
b42b61d
edf9618
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 |
---|---|---|
|
@@ -47,31 +47,13 @@ class FloatingDtype(BaseMaskedDtype): | |
The attributes name & type are set when these subclasses are created. | ||
""" | ||
|
||
name: str | ||
base = None | ||
type: Type | ||
|
||
def __repr__(self) -> str: | ||
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. should e in the BaseMaskedArray class 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.
There would be nothing else using it, as the Integer/Boolean also have custom implementations. It needs some refactor to be able to share. |
||
return f"{self.name}Dtype()" | ||
|
||
@property | ||
def _is_numeric(self) -> bool: | ||
return True | ||
|
||
@cache_readonly | ||
def numpy_dtype(self) -> np.dtype: | ||
""" Return an instance of our numpy dtype """ | ||
return np.dtype(self.type) | ||
|
||
@cache_readonly | ||
def kind(self) -> str: | ||
return self.numpy_dtype.kind | ||
|
||
@cache_readonly | ||
def itemsize(self) -> int: | ||
""" Return the number of bytes in this dtype """ | ||
return self.numpy_dtype.itemsize | ||
|
||
@classmethod | ||
def construct_array_type(cls) -> Type["FloatingArray"]: | ||
""" | ||
|
Uh oh!
There was an error while loading. Please reload this page.