pyinterp.core.dateutils.weekday

Contents

pyinterp.core.dateutils.weekday#

pyinterp.core.dateutils.weekday(array: object) → numpy.ndarray[dtype=uint8, shape=(*), order='C']#

Return the day of the week as an integer, where Monday is 0 and Sunday is 6.

Parameters:

array – Input numpy datetime64 array.

Returns:

A numpy array of uint8 representing the day of the week.