python - Does anyone understand this error? -


valueerror: error parsing datetime string "2015-01-31:00:00" @ position 10

i trying call np.datetime64('2015-01-31:00:00').

a date in ms gives idea of string format accepts

in [74]: np.datetime64('2015-01-31','ms') out[74]: numpy.datetime64('2015-01-31t00:00:00.000') 

see examples on numpy doc page

http://docs.scipy.org/doc/numpy/reference/arrays.datetime.html

space works

in [79]: np.datetime64('2015-01-31 00:00:00','ms') out[79]: numpy.datetime64('2015-01-31t00:00:00.000') 

Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

ruby on rails - ActiveRecord order not working -