Skip to content

Commit

Permalink
explicitely cast to datetime64[ns] (non-ns-compat) (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause authored Jan 31, 2025
1 parent 32a5eb0 commit 681fa61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesmer/core/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _load_aod_obs(*, version, resample):
dtype={"year": str, "month": str},
)

time = pd.to_datetime(df.year + df.month, format="%Y%m")
time = pd.to_datetime(df.year + df.month, format="%Y%m").astype("datetime64[ns]")

aod = xr.DataArray(df.aod.values, coords={"time": time}, name="aod")

Expand Down

0 comments on commit 681fa61

Please sign in to comment.