Skip to content

Commit d504a04

Browse files
committed
Convert 'date32[day][pyarrow]' to 'datetime64[D]' and 'date64[ms][pyarrow]' to 'datetime64[ms]'
1 parent 84fedf0 commit d504a04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/clib/conversion.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ def _to_numpy(data: Any) -> np.ndarray:
157157
The C contiguous NumPy array.
158158
"""
159159
# Mapping of unsupported dtypes to the expected NumPy dtype.
160-
dtypes: dict[str, type] = {
161-
"date32[day][pyarrow]": np.datetime64,
162-
"date64[ms][pyarrow]": np.datetime64,
160+
dtypes: dict[str, str | type] = {
161+
"date32[day][pyarrow]": "datetime64[D]",
162+
"date64[ms][pyarrow]": "datetime64[ms]",
163163
}
164164

165165
if (

0 commit comments

Comments
 (0)