Skip to content

Commit

Permalink
Convert 'date32[day][pyarrow]' to 'datetime64[D]' and 'date64[ms][pya…
Browse files Browse the repository at this point in the history
…rrow]' to 'datetime64[ms]'
  • Loading branch information
seisman committed Nov 10, 2024
1 parent 65baa30 commit af30386
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygmt/clib/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ def _to_numpy(data: Any) -> np.ndarray:
The C contiguous NumPy array.
"""
# Mapping of unsupported dtypes to the expected NumPy dtype.
dtypes: dict[str, type] = {
"date32[day][pyarrow]": np.datetime64,
"date64[ms][pyarrow]": np.datetime64,
dtypes: dict[str, str | type] = {
"date32[day][pyarrow]": "datetime64[D]",
"date64[ms][pyarrow]": "datetime64[ms]",
}

if (
Expand Down

0 comments on commit af30386

Please sign in to comment.