shunping commented on code in PR #41733:
URL: https://github.com/apache/beam/pull/41733#discussion_r4744448569
##########
sdks/python/apache_beam/dataframe/frames_test.py:
##########
@@ -2320,6 +2320,32 @@ def test_agg_list_with_count_and_size(self):
df = pd.DataFrame({'A': [1.0, None, 3.0, 4.0], 'B': [2, 3, 5, 7]})
self._run_test(lambda df: df.agg(['count', 'mean']), df)
+ def test_min_max_all_na_partition(self):
+ # Each test partition holds a single row here, so the NA rows make
+ # partitions with only missing values.
+ df = pd.DataFrame({
+ 'td': pd.to_timedelta([None, 5, None, 2], unit='s'),
+ 'tz': pd.to_datetime([None, '2024-01-05', None,
+ '2024-01-02']).tz_localize('UTC'),
+ 'int': pd.array([None, 5, None, 2], dtype='Int64'),
+ 'str': pd.array([None, 'b', None, 'a'], dtype='string'),
+ })
+ # TODO(https://github.com/apache/beam/issues/20926): max and min produce
Review Comment:
Anything else we need to address this TODO?
--
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]