@@ -66,7 +66,7 @@ def df_aggregate_100():
6666
6767
6868@pytest .mark .parametrize (
69- "agg_expr, calc_expected" ,
69+ ( "agg_expr" , " calc_expected") ,
7070 [
7171 (f .avg (column ("a" )), lambda a , b , c , d : np .array (np .average (a ))),
7272 (
@@ -88,7 +88,7 @@ def df_aggregate_100():
8888 f .covar_samp (column ("b" ), column ("c" )),
8989 lambda a , b , c , d : np .array (np .cov (b , c , ddof = 1 )[0 ][1 ]),
9090 ),
91- # f.grouping(col_a), # No physical plan implemented yet
91+ # f.grouping(col_a), # No physical plan implemented yet # noqa: ERA001
9292 (f .max (column ("a" )), lambda a , b , c , d : np .array (np .max (a ))),
9393 (f .mean (column ("b" )), lambda a , b , c , d : np .array (np .mean (b ))),
9494 (f .median (column ("b" )), lambda a , b , c , d : np .array (np .median (b ))),
@@ -114,7 +114,7 @@ def test_aggregation_stats(df, agg_expr, calc_expected):
114114
115115
116116@pytest .mark .parametrize (
117- "agg_expr, expected, array_sort" ,
117+ ( "agg_expr" , " expected" , " array_sort") ,
118118 [
119119 (f .approx_distinct (column ("b" )), pa .array ([2 ], type = pa .uint64 ()), False ),
120120 (
@@ -182,12 +182,11 @@ def test_aggregation(df, agg_expr, expected, array_sort):
182182 agg_df .show ()
183183 result = agg_df .collect ()[0 ]
184184
185- print (result )
186185 assert result .column (0 ) == expected
187186
188187
189188@pytest .mark .parametrize (
190- "name, expr, expected" ,
189+ ( "name" , " expr" , " expected") ,
191190 [
192191 (
193192 "approx_percentile_cont" ,
@@ -313,7 +312,7 @@ def test_bit_and_bool_fns(df, name, expr, result):
313312
314313
315314@pytest .mark .parametrize (
316- "name, expr, result" ,
315+ ( "name" , " expr" , " result") ,
317316 [
318317 ("first_value" , f .first_value (column ("a" )), [0 , 4 ]),
319318 (
@@ -363,7 +362,6 @@ def test_bit_and_bool_fns(df, name, expr, result):
363362 ),
364363 [8 , 9 ],
365364 ),
366- ("first_value" , f .first_value (column ("a" )), [0 , 4 ]),
367365 (
368366 "nth_value_ordered" ,
369367 f .nth_value (column ("a" ), 2 , order_by = [column ("a" ).sort (ascending = False )]),
@@ -403,7 +401,7 @@ def test_first_last_value(df_partitioned, name, expr, result) -> None:
403401
404402
405403@pytest .mark .parametrize (
406- "name, expr, result" ,
404+ ( "name" , " expr" , " result") ,
407405 [
408406 ("string_agg" , f .string_agg (column ("a" ), "," ), "one,two,three,two" ),
409407 ("string_agg" , f .string_agg (column ("b" ), "" ), "03124" ),
0 commit comments