DatetimeIndex with closed='left' or 'right' drop dates at the boundaries #11804

Closed
thrasibule opened this Issue Dec 9, 2015 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

thrasibule commented Dec 9, 2015

When either start or end is at the boundary of a date_range, they get dropped when they shouldn't if we specify the closed argument, see example below:

In [1]: pd.date_range('2015-09-12', '2015-10-30', freq='QS-MAR', closed='right')
Out[1]: DatetimeIndex([], dtype='datetime64[ns]', freq='QS-MAR')

In [2]: pd.date_range('2015-09-01', '2015-10-30', freq='QS-MAR', closed='left')
Out[2]: DatetimeInddex([], dtype='datetime64[ns]', freq='QS-MAR')

thrasibule changed the title from DatetimeIndex with closed=left or right drop dates at the boundaries to DatetimeIndex with closed='left' or right drop dates at the boundaries Dec 9, 2015

thrasibule changed the title from DatetimeIndex with closed='left' or right drop dates at the boundaries to DatetimeIndex with closed='left' or 'right' drop dates at the boundaries Dec 9, 2015

jreback added this to the 0.18.0 milestone Dec 10, 2015

jreback added the Bug label Dec 10, 2015

@jreback jreback modified the milestone: Next Major Release, 0.18.0 Dec 10, 2015

@jreback jreback modified the milestone: 0.18.0, Next Major Release Dec 17, 2015

jreback closed this in #11806 Dec 17, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment