Github user citoubest commented on the issue:

    https://github.com/apache/spark/pull/15135
  
    with pandas, the param for agg is the function not a str (function names).
    In [13]: df
    Out[13]: 
              a         b         c  d
    0  0.068300  0.263883  0.237335  1
    1  0.226992  0.573966  0.954791  2
    2  0.907550  0.930591  0.886454  1
    3  0.178581  0.440734  0.414763  2
    
    In [14]: df.groupby('d').agg([max,min])
    Out[14]: 
              a                   b                   c          
            max       min       max       min       max       min
    d                                                            
    1  0.907550  0.068300  0.930591  0.263883  0.886454  0.237335
    2  0.226992  0.178581  0.573966  0.440734  0.954791  0.414763



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to