Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Make order of arguments for groupby consistent with other iterators. #30

Merged
merged 1 commit into from
Feb 13, 2015

Conversation

lendle
Copy link
Contributor

@lendle lendle commented Jul 6, 2014

This switches the order of the function and collection arguments in groupby so that it is consistent with the imap and iterate iterators and higher order functions in Base such as map. A warning is issued if groupby is called with arguments in the old order.

Also, the GroupBy2 benchmark was not being run, and I assume that was omitted by mistake. GroupBy2 is now run.

@kmsquire
Copy link
Member

kmsquire commented Jul 6, 2014

The order argument makes sense to me, but I think the current version matches the ordering in DataFrames.

There is an issue open there to change the order there as well (JuliaData/DataFrames.jl#580), but it hasn't had much traffic recently. Might want to comment there.

While we wait for other comments, can you move the GroupBy2 benchmark fix to a separate PR?

@lendle lendle changed the title Make order of arguments for groupby consistent with other iterators.Pull request/95d755dd Make order of arguments for groupby consistent with other iterators. Jul 18, 2014
@garborg
Copy link
Contributor

garborg commented Jan 15, 2015

Anything holding this up other than the already-merged test change needing to be removed from the PR?

FWIF, the referenced DataFrames method takes a Function as the first argument now (defined both ways).

@garborg
Copy link
Contributor

garborg commented Jan 27, 2015

Bump. Anyone anyone with write access have an opinion?

@kmsquire
Copy link
Member

Makes sense to me, and the implementation looks reasonable at a glance. The merge conflict will have to be resolved.

@lendle
Copy link
Contributor Author

lendle commented Jan 28, 2015

I'll fix the merge conflicts later this week or weekend unless someone else
wants to.
On Jan 27, 2015 10:22 PM, "Kevin Squire" notifications@github.com wrote:

Makes sense to me, and the implementation looks reasonable at a glance.
The merge conflict will have to be resolved.


Reply to this email directly or view it on GitHub
#30 (comment).

@kmsquire
Copy link
Member

Sounds good!

@garborg
Copy link
Contributor

garborg commented Jan 28, 2015

Great!

@lendle lendle force-pushed the pull-request/95d755dd branch 2 times, most recently from 29509b6 to 6267fa7 Compare February 2, 2015 06:34
@coveralls
Copy link

Coverage Status

Coverage decreased (-20.09%) to 73.48% when pulling 29509b6 on lendle:pull-request/95d755dd into a4a741c on JuliaLang:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-20.09%) to 73.48% when pulling 6267fa7 on lendle:pull-request/95d755dd into a4a741c on JuliaLang:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-20.09%) to 73.48% when pulling 981583b on lendle:pull-request/95d755dd into a4a741c on JuliaLang:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-20.09%) to 73.48% when pulling 61cf20e on lendle:pull-request/95d755dd into a4a741c on JuliaLang:master.

@lendle
Copy link
Contributor Author

lendle commented Feb 2, 2015

I haven't been following julia issues closely lately but I think the travis failure for 0.4 is due to JuliaLang/julia#9947.

@garborg
Copy link
Contributor

garborg commented Feb 13, 2015

This passes locally for me on master and release-0.3. Anyone willing to either click the Restart Build button from within Travis or merge?

@simonster
Copy link
Member

I restarted the build, but it failed again. It looks like the nightly hasn't been updated in 10 days because of JuliaLang/julia#10027.

simonster added a commit that referenced this pull request Feb 13, 2015
Make order of arguments for groupby consistent with other iterators.
@simonster simonster merged commit 107ff7a into JuliaCollections:master Feb 13, 2015
@lendle lendle deleted the pull-request/95d755dd branch February 13, 2015 18:05
@garborg
Copy link
Contributor

garborg commented Feb 13, 2015

Ah, I see. Thanks!

On Fri, Feb 13, 2015 at 11:04 AM, Simon Kornblith notifications@github.com
wrote:

Merged #30 #30.


Reply to this email directly or view it on GitHub
#30 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants