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
import time time.strftime("%H:%M", time.strptime(str(x), "%Y-%m-%d %H:%M:%S"))
Note: x should be pandas.tslib.Timestamp (as it is in the question)