Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • can you post an output of print(compare.index.get_level_values(0)[:5]) ? And what is your Pandas version? Commented Aug 11, 2017 at 23:11
  • DatetimeIndex(['2016-01-04 01:40:00', '2016-01-04 02:00:00', '2016-01-04 02:10:00', '2016-01-04 02:30:00', '2016-01-04 02:40:00'], dtype='datetime64[ns]', name=u'TTimeStamp', freq=None) is the output I get from the print statement. I am using Pandas 0.20.3 Commented Aug 11, 2017 at 23:36
  • please see UPDATE in my answer - i can't reproduce your error... I'm using Pandas 0.20.1 Commented Aug 11, 2017 at 23:39