8000 CLN: Move some PI/DTI methods to EA subclasses, implement tests by jbrockmendel · Pull Request #22961 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN: Move some PI/DTI methods to EA subclasses, implement tests #22961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 8, 2018
Prev Previous commit
Next Next commit
Revert change that broke things
  • Loading branch information
jbrockmendel committed Oct 3, 2018
commit 09f1b0260b2aaed7d16acc1fdc25dacb45f30ddf
2 changes: 1 addition & 1 deletion pandas/core/arrays/period.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def to_timestamp(self, freq=None, how='start'):
return self.to_timestamp(how='start') + adjust
else:
adjust = Timedelta(1, 'ns')
return (self + self.freq).to_timestamp(how='start') - adjust
return (self + 1).to_timestamp(how='start') - adjust

if freq is None:
base, mult = frequencies.get_freq_code(self.freq)
Expand Down
0