Skip to content

Commit f41a6c2

Browse files
committed
BUG: Adjust time values with Period objects in Series.dt.end_time
1 parent 699a48b commit f41a6c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/indexes/period.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,8 @@ def start_time(self):
651651

652652
@property
653653
def end_time(self):
654-
return self.to_timestamp(how='end')
654+
data = (self + 1).start_time.values.astype(int) - 1
655+
return DatetimeIndex(data=data)
655656

656657
def _mpl_repr(self):
657658
# how to represent ourselves to matplotlib

0 commit comments

Comments
 (0)