Skip to content

Commit 08c8317

Browse files
committed
BUG: Adjust time values with Period objects in Series.dt.end_time
1 parent 610a19a commit 08c8317

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
@@ -481,7 +481,8 @@ def start_time(self):
481481

482482
@property
483483
def end_time(self):
484-
return self.to_timestamp(how='end')
484+
data = (self + 1).start_time.values.astype(int) - 1
485+
return DatetimeIndex(data=data)
485486

486487
def _mpl_repr(self):
487488
# how to represent ourselves to matplotlib

0 commit comments

Comments
 (0)