Skip to content
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

Fix bug where offset.copy() != offset #17452

Merged
merged 4 commits into from
Sep 14, 2017

Conversation

jbrockmendel
Copy link
Member

Add test that will currently fail
Make some attributes into cache_readonlys

Last one for now.

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

Add test that will currently fail
Make some attributes into cache_readonlys
@pep8speaks
Copy link

pep8speaks commented Sep 6, 2017

Hello @jbrockmendel! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on September 14, 2017 at 16:17 Hours UTC

@@ -1952,6 +1952,10 @@ def _check_roundtrip(obj):
_check_roundtrip(self._object(2))
_check_roundtrip(self._object() * 2)

def test_copy(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the issue number (or pr number in this case) as a comment

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@gfyoung gfyoung added Bug Internals Related to non-user accessible pandas implementation labels Sep 9, 2017
@jreback jreback added the Frequency DateOffsets label Sep 14, 2017
@jreback
Copy link
Contributor

jreback commented Sep 14, 2017

is this orthogonal on #17458 ?

@jbrockmendel
Copy link
Member Author

Yes. They're related in spirit, but need to be fixed separately.

@codecov
Copy link

codecov bot commented Sep 14, 2017

Codecov Report

Merging #17452 into master will increase coverage by 0.04%.
The diff coverage is 98.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17452      +/-   ##
==========================================
+ Coverage   91.15%    91.2%   +0.04%     
==========================================
  Files         163      163              
  Lines       49587    49604      +17     
==========================================
+ Hits        45203    45243      +40     
+ Misses       4384     4361      -23
Flag Coverage Δ
#multiple 88.99% <98.36%> (+0.06%) ⬆️
#single 40.19% <54.09%> (-0.12%) ⬇️
Impacted Files Coverage Δ
pandas/tseries/offsets.py 97.18% <98.36%> (+0.03%) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/tseries/frequencies.py 96.11% <0%> (-0.4%) ⬇️
pandas/core/sparse/array.py 91.3% <0%> (-0.12%) ⬇️
pandas/core/frame.py 97.77% <0%> (-0.05%) ⬇️
pandas/core/series.py 94.92% <0%> (-0.03%) ⬇️
pandas/core/dtypes/concat.py 98.26% <0%> (-0.03%) ⬇️
pandas/core/generic.py 91.98% <0%> (-0.01%) ⬇️
pandas/core/indexes/base.py 96.28% <0%> (-0.01%) ⬇️
pandas/util/_doctools.py 0% <0%> (ø) ⬆️
... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d457791...db8c18e. Read the comment docs.

@jreback jreback added this to the 0.21.0 milestone Sep 14, 2017
@jreback jreback merged commit ad70ed4 into pandas-dev:master Sep 14, 2017
@jreback
Copy link
Contributor

jreback commented Sep 14, 2017

thanks; normally I would ask for a whatsnew entry, but I think this is fine.

@jbrockmendel jbrockmendel deleted the offset_cals branch October 30, 2017 16:24
alanbato pushed a commit to alanbato/pandas that referenced this pull request Nov 10, 2017
No-Stream pushed a commit to No-Stream/pandas that referenced this pull request Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Frequency DateOffsets Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants