I have the following:
> date1
Timestamp('2014-01-23 00:00:00', tz=None)
> date2
datetime.date(2014, 3, 26)
and I could use pandas.to_datetime() to convert from Timestamps to datetime objects, but it doesn't seem to work:
> pd.to_datetime(date1)
Timestamp('2014-01-23 00:00:00', tz=None)
Why? How can I convert between these two formats?