pydata/pandas — pull request #7529 by sinhrks (2014-06-20 20:28:40+00:00)
Title: BUG: DatetimeIndex comparison handles NaT incorrectly

Derived from #7485. Comparison with ``DatetimeIndex`` result incorrectly if ``NaT`` is included.

```
idx1 = pd.DatetimeIndex(['2011-01-01', pd.NaT], freq='M')
idx2 = pd.DatetimeIndex([pd.NaT, '2011-01-01'], freq='M')
print(idx1 > idx2)
# [True, False]
# it must be [False, False]
```