I'm trying to write to numPy matrix a date in numpy.datetime64.
The command:
date_vec[row][ind] = np.datetime64(row[date_ind][ind], dtype='datetime64')
Returns:
TypeError: "Cannot cast NumPy timedelta64 scalar from metadata [us] to according to the rule 'same_kind'"
The np.datetime64(row[date_ind][ind], dtype='datetime64')
returns:
numpy.datetime64('2004-10-19T10:23:54.000000+0200')
What am I missing?