Skip to content

Commit

Permalink
Convert numpy datetimes to us
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Oct 27, 2023
1 parent 1e67680 commit f10a8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renumics/spotlight/dtypes/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _(value: Union[str, np.str_], _: dtypes.DType) -> Optional[datetime.datetime

@convert("datetime")
def _(value: np.datetime64, _: dtypes.DType) -> Optional[datetime.datetime]:
return value.tolist()
return value.astype("datetime64[us]").tolist()


@convert("Category")
Expand Down

0 comments on commit f10a8dc

Please sign in to comment.