BUG: end_time for Period with multiplied freq · Issue #11738 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@pajachiet

Description

@pajachiet

end_time of a Period with multiplied freq is the square of the multiplication

pd.version u'0.17.0'

p = pd.Period('2015-08-01', freq='3D') p.end_time, p.to_timestamp(how='E') (Timestamp('2015-08-09 23:59:59.999999999'), Timestamp('2015-08-03 00:00:00'))

p = pd.Period('2015-08-01', freq='5D') p.end_time, p.to_timestamp(how='E') (Timestamp('2015-08-25 23:59:59.999999999'), Timestamp('2015-08-05 00:00:00'))