Skip to content

Fix #20744 . loffset ignored in upsample #20867

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

Closed
wants to merge 1 commit into from

Conversation

johncant
Copy link
Contributor

@johncant
Copy link
Contributor Author

Credit to Karan Singhal and @acidburnburn

@codecov
Copy link

codecov bot commented Apr 29, 2018

Codecov Report

Merging #20867 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #20867      +/-   ##
==========================================
+ Coverage   91.77%   91.77%   +<.01%     
==========================================
  Files         153      153              
  Lines       49313    49314       +1     
==========================================
+ Hits        45259    45260       +1     
  Misses       4054     4054
Flag Coverage Δ
#multiple 90.17% <100%> (ø) ⬆️
#single 41.88% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/resample.py 96.07% <100%> (ø) ⬆️

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 563a6ad...00c93d9. Read the comment docs.

assert_series_equal(result, expected)

expected = s.resample(
expected_downsample = Series([s[0], s[1:6].mean(),
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make a separate test instead

Copy link
Contributor

Choose a reason for hiding this comment

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

pls use result & expected rather than changing things

@@ -1200,6 +1200,7 @@ Groupby/Resample/Rolling
- Bug in :func:`DataFrameGroupBy.cumsum` and :func:`DataFrameGroupBy.cumprod` when ``skipna`` was passed (:issue:`19806`)
- Bug in :func:`DataFrame.resample` that dropped timezone information (:issue:`13238`)
- Bug in :func:`DataFrame.groupby` where transformations using ``np.all`` and ``np.any`` were raising a ``ValueError`` (:issue:`20653`)
- Bug in :func:`DatetimeIndexResampler._upsample` where ``loffset`` was being ignored (:issue:`20744`)
Copy link
Contributor

Choose a reason for hiding this comment

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

should be a user visible note. users dont' know what _upsample is as its an internal method. pls rephrase.

@jreback jreback added Bug Resample resample method labels Apr 29, 2018
@johncant
Copy link
Contributor Author

Consider it done! I'll also rewrite the msg to include [BUG]

@johncant
Copy link
Contributor Author

Replaced by pull request #20884

@johncant johncant closed this Apr 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Resample resample method
Projects
None yet
Development

Successfully merging this pull request may close these issues.

loffset in resample does not work with ffill, bfill, pad
2 participants