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 9a12ae9 commit 851a203Copy full SHA for 851a203
pygmt/clib/conversion.py
@@ -157,9 +157,9 @@ def _to_numpy(data: Any) -> np.ndarray:
157
The C contiguous NumPy array.
158
"""
159
# 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,
+ dtypes: dict[str, str | type] = {
+ "date32[day][pyarrow]": "datetime64[D]",
+ "date64[ms][pyarrow]": "datetime64[ms]",
163
}
164
165
if (
0 commit comments