pyinterp.core.dateutils.weekday#
- pyinterp.core.dateutils.weekday(array: numpy.ndarray) numpy.typing.NDArray[numpy.uint32]#
Get the weekday for each date in the datetime64 array.
Returns the day of week for each datetime64 value where Sunday is 0 and Saturday is 6, following Python’s datetime.weekday() convention.
- Parameters:
array – Numpy array of datetime64 to process.
- Returns:
Integer dtype array containing weekday values (0=Sunday, 6=Saturday).