wesm/pandas — Issue #456: DateRange union bug caused by bad DateOffset comparison
Author: wesm
Created: 2011-12-06 20:04:32+00:00
State: open
Labels: Bug

Reported by user

```
In [35]: rng1 = DateRange('12/5/2011', '12/5/2011')

In [36]: rng2 = DateRange('12/2/2011', '12/5/2011')

In [37]: rng1.union(rng2)
Out[37]:

offset: <1 BusinessDay>, tzinfo: None
[2011-12-02 00:00:00, ..., 2011-12-05 00:00:00]
length: 2

In [38]: rng2.offset = datetools.BDay()

In [39]: rng1.union(rng2)
Out[39]: Index([2011-12-02 00:00:00, 2011-12-05 00:00:00], dtype=object)
```