anishmehta24 opened a new pull request, #41733:
URL: https://github.com/apache/beam/pull/41733

   Fixes #41732
   
   For `min` and `max`, `DeferredSeries.aggregate` wraps each partition's 
result in `pd.Series(...)`. A partition with only missing values gives `NaT` or 
`NA`, and `pd.Series` makes that datetime64 or object, so the final step fails 
on timedelta, tz-aware datetime, `string` and nullable columns. An empty 
partition gives NaN, which turns a `skipna=False` result into NaN. The 
per-partition step now keeps the input dtype and passes nothing on for an empty 
partition. Other aggregations are unchanged, and the intermediate keeps its old 
proxy, so the result proxies are the same as before.
   
   Added `test_min_max_all_na_partition` to frames_test.py (each test partition 
holds one row there, so the NA rows make all-NA partitions) and 
`test_min_max_skipna_false_with_empty_partition` to transforms_test.py (a 
pipeline where the filter leaves one batch empty). Both fail on master. The 
apache_beam/dataframe tests and the DataFrame and Series pandas doctests pass.
   


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

Reply via email to