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

   ### What changes were proposed in this pull request?
   
   Makes `numeric_only` argument in `groupby` functions accept only boolean 
with pandas 3.
   
   ### Why are the changes needed?
   
   pandas 3 doesn't accept non-boolean values, like `None`, for `numeric_only` 
argument in `groupby` functions anymore.
   
   We should follow this behavior when working with pandas 3.
   
   Note: some functions in `DataFrame` and `Series` also have `numeric_only` 
argument, but they don't raise an exception or even show warnings, they are 
left as they are for now.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, `numeric_only` argument in `groupby` functions won't accept non-boolean 
values when working with pandas 3.
   
   ### How was this patch tested?
   
   Updated the related tests.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to