pyinterp.core.dateutils.isocalendar

pyinterp.core.dateutils.isocalendar(array: numpy.ndarray) numpy.ndarray[pyinterp::dateutils::ISOCalendar]

Return the ISO calendar of dates.

Parameters

array (numpy.ndarray) – Numpy array of datetime64 to process.

Returns

A structured numpy array containing three fields: year, week and weekday.

Return type

numpy.ndarray

See also

datetime.date.isocalendar.