Skip to content

Commit 8883f3c

Browse files
committed
Another fix for the workaround
1 parent 0e0438b commit 8883f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/clib/conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _to_numpy(data: Any) -> np.ndarray:
185185
): # pandas Series/Index with pandas nullable numeric dtypes.
186186
dtype = data.dtype.numpy_dtype # The expected numpy dtype.
187187
if getattr(data, "hasnans", False):
188-
if dtype.kind in "iu":
188+
if data.dtype.kind in "iu":
189189
# Integers with missing values are converted to float64.
190190
dtype = np.float64
191191
data = data.to_numpy(na_value=np.nan)

0 commit comments

Comments
 (0)