Skip to content

Conversation

topper-123
Copy link
Contributor

@topper-123 topper-123 commented Dec 6, 2017

The how parameter of df.rolling/expanding/ewm related methods was deprecated in 0.18 (#11603). This PR removes the parameter from the code base.

This PR is a continuation of #18601 (removed the freq parameter). Next up will be to remove pd.stats.*).

@topper-123 topper-123 force-pushed the remove_rolling_etc_how branch 2 times, most recently from 146918d to 32bf255 Compare December 6, 2017 21:22

indices = [datetime(1975, 1, i) for i in range(1, 6)]
# So that we can have 3 datapoints on last day (4, 10, and 20)
indices.append(datetime(1975, 1, 5, 1))
Copy link
Contributor

Choose a reason for hiding this comment

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

just remove the actual how= params, the rest of the tests are ok (you can rename this slightly as well). its possible these tests are somewhat duplicated as well. have a look.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think these test look a bit contrieved then ATM, but ok, I will look into them when I refactor pd.stats to see if it makes sense to keep them, possibly in an altered shape.

@jreback jreback added Deprecate Functionality to remove in pandas Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Dec 7, 2017
@codecov
Copy link

codecov bot commented Dec 7, 2017

Codecov Report

Merging #18668 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18668      +/-   ##
==========================================
- Coverage   91.59%   91.55%   -0.05%     
==========================================
  Files         153      153              
  Lines       51212    51212              
==========================================
- Hits        46908    46887      -21     
- Misses       4304     4325      +21
Flag Coverage Δ
#multiple 89.41% <100%> (-0.03%) ⬇️
#single 40.67% <50%> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/core/window.py 96.31% <100%> (ø) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/plotting/_converter.py 63.44% <0%> (-1.82%) ⬇️
pandas/core/frame.py 97.81% <0%> (-0.1%) ⬇️

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 695e893...2f4ba4e. Read the comment docs.

@topper-123 topper-123 force-pushed the remove_rolling_etc_how branch from 32bf255 to 2f4ba4e Compare December 7, 2017 08:44
@topper-123
Copy link
Contributor Author

All green.

@jreback jreback added this to the 0.22.0 milestone Dec 8, 2017
@jreback jreback merged commit a7f6714 into pandas-dev:master Dec 8, 2017
@jreback
Copy link
Contributor

jreback commented Dec 8, 2017

thanks @topper-123

- The ``freq`` parameter has been removed from the ``rolling``/``expanding``/``ewm`` methods of DataFrame
and Series (deprecated since v0.18). Instead, resample before calling the methods. (:issue:18601)
- The ``freq`` and ``how`` parameters have been removed from the ``rolling``/``expanding``/``ewm`` methods of DataFrame
and Series (deprecated since v0.18). Instead, resample before calling the methods. (:issue:18601 & :issue:18668)
Copy link
Member

Choose a reason for hiding this comment

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

@topper-123 small note for future reference: the issue references need some backticks (see eg line above)

@topper-123 topper-123 deleted the remove_rolling_etc_how branch December 11, 2017 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants