hjoo commented on issue #24981: [WIP][SPARK-27463][PYTHON] Support Dataframe 
Cogroup via Pandas UDFs- Arrow Stream Impl
URL: https://github.com/apache/spark/pull/24981#issuecomment-512291928
 
 
   I've shown cogroup to potential users, and the most common feedback was that 
the double groupby was repetitive and confusing. One user asked if they could 
cogroup two dataframes grouped by different keys; the API 
`df1.groupby('id').cogroup(df2.groupby('id')).apply(func)` doesn't suggest that 
they shouldn't do that.
   
   As a result, I'm more in favor of:
   
   `df1.cogroup(df2, on='id').apply(func)`
   
   Several people independently suggested an API like this one which tells me 
it's probably more intuitive. It's also more succinct, and I think it would be 
less prone to incorrect usage. Thoughts?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to