Skip to content

Commit 6e3a5a8

Browse files
committed
cleanups
1 parent 39b2477 commit 6e3a5a8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pandas/_libs/tslib.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ class Timestamp(_Timestamp):
502502
"""
503503
Return an period of which this timestamp is an observation.
504504
"""
505-
from pandas.tseries.period import Period
505+
from pandas import Period
506506

507507
if freq is None:
508508
freq = self.freq

pandas/compat/pickle_compat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ def load_reduce(self):
9494
('pandas.indexes.range', 'RangeIndex'):
9595
('pandas.core.indexes.range', 'RangeIndex'),
9696
('pandas.indexes.multi', 'MultiIndex'):
97-
('pandas.core.indexes.multi', 'MultiIndex')
97+
('pandas.core.indexes.multi', 'MultiIndex'),
98+
('pandas.tseries.period', 'PeriodIndex'):
99+
('pandas.core.indexes.period', 'PeriodIndex')
98100
}
99101

100102

0 commit comments

Comments
 (0)