pyinterp.TemporalAxis.cast_to_temporal_axis#
- TemporalAxis.cast_to_temporal_axis(self, array: object) object#
Safely cast an array to the axis resolution.
Convert an input numpy datetime64 or timedelta64 array to the internal resolution of the axis.
- Parameters:
array – Numpy array of datetime64 or timedelta64 values.
- Returns:
Numpy array converted to the axis resolution.