I have a df time series. I extracted the indexes and want to convert them each to datetime. How do you go about doing that? I tried to use pa
df
datetime
pa
This works for me, to create date for insert in MySQL, please try:
insert
pandas_tslib = pandas_tslib.to_pydatetime() pandas_tslib = "'" + pandas_tslib.strftime('%Y-%m-%d') + "'"