Hi
Sorry for the rudimentary questions. When I print a History datetime index I see something like this:
PRINT Security(3766 [IBM]) 2010-12-31 20:30:00+00:00
dtype: object
For back testing and development in general, I want to display a number of prices around a specific datetime, but I don't know how to do a comparison so I can print, i.e.
hiidx = price_history_hi.idxmax()
if hiidx == '2011-01-03 14:31:00+00:00':
print 'Datetime found'
but this comparison does not work. How can I convert the History dataframe's datetime index to a string for comparison?
Thanks in advance
J