Github user felixcheung commented on the pull request:

    https://github.com/apache/spark/pull/9489#issuecomment-155250719
  
    This does work
    ```
    > head(agg(df, stddev(df$age)))    # same as head(summarize(df, 
stddev(df$age)))
      stddev_samp(age)
    1         7.778175
    ```
    Also these work
    ```
    > gd <- groupBy(df, "name")
    > head(agg(gd, stddev(df$age)))    # same as head(agg(gd, age = "stddev"))
         name stddev_samp(age)
    1    Andy                0
    2 Michael               NA
    3  Justin                0
    ```
    I think they match dplyr, so I could name them `sd` and `var`, but just as 
I mention, doesn't work as one would expect on data.frame column vector.


---
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