We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e0438b commit 8883f3cCopy full SHA for 8883f3c
pygmt/clib/conversion.py
@@ -185,7 +185,7 @@ def _to_numpy(data: Any) -> np.ndarray:
185
): # pandas Series/Index with pandas nullable numeric dtypes.
186
dtype = data.dtype.numpy_dtype # The expected numpy dtype.
187
if getattr(data, "hasnans", False):
188
- if dtype.kind in "iu":
+ if data.dtype.kind in "iu":
189
# Integers with missing values are converted to float64.
190
dtype = np.float64
191
data = data.to_numpy(na_value=np.nan)
0 commit comments