Skip to content

Commit

Permalink
allow nan inference for float64
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Michael Dalton committed Sep 18, 2024
1 parent 7f7dd26 commit 7fd1208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reciprocalspaceship/dtypes/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ def round(self: T, decimals: int = 0, *args, **kwargs) -> T:

@wraps(libmissing.is_numeric_na)
def is_numeric_na(values):
allowed_dtypes = ("float32", "int32")
allowed_dtypes = ("float64", "float32", "int32")
if isinstance(values, np.ndarray) and values.dtype in allowed_dtypes:
return np.isnan(values)
return libmissing.is_numeric_na(values)

0 comments on commit 7fd1208

Please sign in to comment.