I have a string object in this format 2014-12-08 09:30:00.066000 but I want to convert to datetime variable. I also want this to be less granular- I want it to be just in the order of second for example
2014-12-08 09:30:00.066000 to 2014-12-08 09:30:00
I am trying to use pd.to_datetime function but it's not working for me. Anyone know how to do this? Thanks!