You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/09/28 04:40:33 UTC

[GitHub] [spark] zhengruifeng opened a new pull request, #38026: [SPARK-40592][PS] Implement `min_count` in `GroupBy.max`

zhengruifeng opened a new pull request, #38026:
URL: https://github.com/apache/spark/pull/38026

   ### What changes were proposed in this pull request?
   Implement `min_count` in `GroupBy.max`
   
   
   ### Why are the changes needed?
   for API coverage
   
   
   ### Does this PR introduce _any_ user-facing change?
   yes, new parameter
   
   ```
           >>> df = ps.DataFrame({"A": [1, 2, 1, 2], "B": [True, False, False, True],
           ...                    "C": [3, 4, 3, 4], "D": ["a", "a", "b", "a"]})
   
           >>> df.groupby("D").max().sort_index()
              A      B  C
           D
           a  2   True  4
           b  1  False  3
   
           >>> df.groupby("D").max(min_count=3).sort_index()
                A     B    C
           D
           a  2.0  True  4.0
           b  NaN  None  NaN
   ```
   
   
   ### How was this patch tested?
   added UT


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

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] zhengruifeng closed pull request #38026: [SPARK-40592][PS] Implement `min_count` in `GroupBy.max`

Posted by GitBox <gi...@apache.org>.
zhengruifeng closed pull request #38026: [SPARK-40592][PS] Implement `min_count` in `GroupBy.max`
URL: https://github.com/apache/spark/pull/38026


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

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] zhengruifeng commented on pull request #38026: [SPARK-40592][PS] Implement `min_count` in `GroupBy.max`

Posted by GitBox <gi...@apache.org>.
zhengruifeng commented on PR #38026:
URL: https://github.com/apache/spark/pull/38026#issuecomment-1260564475

   Merged into master, thanks @HyukjinKwon for reviews


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

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org