Skip to content

ENH: enabled 'on' keyword for groupby(..).resample() #15326

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 3 commits into from

Conversation

verhalenn
Copy link

@codecov-io
Copy link

codecov-io commented Feb 7, 2017

Codecov Report

Merging #15326 into master will increase coverage by <.01%.

@@            Coverage Diff             @@
##           master   #15326      +/-   ##
==========================================
+ Coverage   86.32%   86.33%   +<.01%     
==========================================
  Files         141      141              
  Lines       51163    51164       +1     
==========================================
+ Hits        44169    44170       +1     
  Misses       6994     6994
Impacted Files Coverage Δ
pandas/core/groupby.py 95.15% <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 34cdfa4...9fc3b4f. Read the comment docs.

@jreback jreback added Bug Resample resample method labels Feb 7, 2017
@jreback jreback closed this in 6d2293f Feb 7, 2017
@jreback jreback added this to the 0.20.0 milestone Feb 7, 2017
@jreback
Copy link
Contributor

jreback commented Feb 7, 2017

thanks @verhalenn

changed slightly to put in a more logical place.

we have had this dichotomy between .groupby and .resample where the former uses .key and latter .on. We had a discussion about this to normalize that, but didn't take any action.

@chrisaycock @jorisvandenbossche

worth deprecating key in favor of on in pd.Grouper? or just leave it (I happen to like on better as we use this in .merge as well).

@chrisaycock
Copy link
Contributor

worth deprecating key in favor of on in pd.Grouper?

Makes sense to me. Consistent parameter names makes things easy.

@jorisvandenbossche
Copy link
Member

I would personally just leave this.
The current 'sounds' also OK: "resample on a column", group by a key" (not "group by on")

@jreback
Copy link
Contributor

jreback commented Feb 7, 2017

ok, so split opinion! going to make an issue in any event.

@verhalenn verhalenn deleted the issue15021 branch February 24, 2017 01:36
AnkurDedania pushed a commit to AnkurDedania/pandas that referenced this pull request Mar 21, 2017
closes pandas-dev#15021

Author: Nicholas Ver Halen <[email protected]>

Closes pandas-dev#15326 from verhalenn/issue15021 and squashes the following commits:

9fc3b4f [Nicholas Ver Halen] Updated the whatsnew for issue 15021
ec1f316 [Nicholas Ver Halen] Created a test for GH 15021
b8b10b0 [Nicholas Ver Halen] Added the on arg to resample on a grouped dataframe.
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.

ENH: enable 'on' keyword for groupby(..).resample()
5 participants