I have a column having 2 different formats of the date which I'm trying to convert to datetime using to_datetime of pandas Here's the code
import pandas as pa pa.to_datetime(data["servertime"], format="%a %b %d %H:%M:%S %Y")
e.g - servertime Tue Nov 4 12:01:15 2014
But few rows have data in following format u'2014-11-04 13:15:13 +0000' which throws the errors
How do I parse two different formats present in same row?
If I can't then how do I convert/remove/flag the rows(preferably without hard coding the condition)?