Merge pull request #3135 from jreback/GH2787

BUG: fix NameError issue in GH2787
ENH: added selection to an unordered timeseries the same semantics as an ordered timeseries (GH2437)