Assume I have this data set (or a more extensive one):
import numpy as np
array = np.array([
np.datetime64('2022-01-03'),
np.datetime64('2022-05-03'),
np.datetime64('2022-12-03')
])
I want to separate the dates by the month into different arrays. How can I do that?
A related and more general question would be how to filter them by year, month, day...