I'm trying to datetime a column of a dataframe. But I skip this mistake, I read the documentation of datetime and I don't understand what the problem is.
datetime.strptime('Oct 22 2019 12:58:45:196AM', '%b %d %Y %H:%M:%S:%f%p')
I'm trying to datetime a column of a dataframe. But I skip this mistake, I read the documentation of datetime and I don't understand what the problem is.
datetime.strptime('Oct 22 2019 12:58:45:196AM', '%b %d %Y %H:%M:%S:%f%p')
USE this one there is no need to any format
>>> from dateutil import parser
>>> s= '25 April, 2020, 2:50, pm, IST'
>>> parser.parse(s)
>>> datetime.datetime(2020, 4, 25, 14, 50)