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 84fedf0 commit e13b5d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmt/clib/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def _to_numpy(data: Any) -> np.ndarray:
"""
# Mapping of unsupported dtypes to the expected NumPy dtype.
dtypes: dict[str, type] = {
"date32[day][pyarrow]": np.datetime64,
"date64[ms][pyarrow]": np.datetime64,
"date32[day][pyarrow]": "datetime64[D]",
"date64[ms][pyarrow]": "datetime64[ms]",
}

if (
Expand Down

0 comments on commit e13b5d3

Please sign in to comment.