5
io non riesco a ottenere numpy.digitize a lavorare con datetime64:NumPy digitalizzare con datetime64
date_bins = np.array([np.datetime64(datetime.datetime(2014, n, 1), 's') for n in range(1,13)])
np.digitize(date_bins, date_bins)
Si dà il seguente errore:
TypeError: Cannot cast array data from dtype('<M8[s]') to dtype('float64') according to the rule 'safe'
È questo comportamento previsto?