@@ -252,21 +252,18 @@ def test_col_dt_accessor(scalars_dfs):
252252def test_col_numpy_ufunc (scalars_dfs ):
253253 scalars_df , scalars_pandas_df = scalars_dfs
254254
255- bf_kwargs = {
256- "sqrt" : np .sqrt (bpd .col ("float64_col" )), # type: ignore
257- "add_const" : np .add (bpd .col ("float64_col" ), 2.4 ), # type: ignore
258- "radd_const" : np .add (2.4 , bpd .col ("float64_col" )), # type: ignore
259- "add_cols" : np .add (bpd .col ("float64_col" ), bpd .col ("int64_col" )), # type: ignore
260- }
261- pd_kwargs = {
262- "sqrt" : np .sqrt (pd .col ("float64_col" )), # type: ignore
263- "add_const" : np .add (pd .col ("float64_col" ), 2.4 ), # type: ignore
264- "radd_const" : np .add (2.4 , pd .col ("float64_col" )), # type: ignore
265- "add_cols" : np .add (pd .col ("float64_col" ), pd .col ("int64_col" )), # type: ignore
266- }
267-
268- bf_result = scalars_df .assign (** bf_kwargs ).to_pandas ()
269- pd_result = scalars_pandas_df .assign (** pd_kwargs ) # type: ignore
255+ bf_result = scalars_df .assign (
256+ sqrt = np .sqrt (bpd .col ("float64_col" )), # type: ignore
257+ add_const = np .add (bpd .col ("float64_col" ), 2.4 ), # type: ignore
258+ radd_const = np .add (2.4 , bpd .col ("float64_col" )), # type: ignore
259+ add_cols = np .add (bpd .col ("float64_col" ), bpd .col ("int64_col" )), # type: ignore
260+ ).to_pandas ()
261+ pd_result = scalars_pandas_df .assign (
262+ sqrt = np .sqrt (pd .col ("float64_col" )), # type: ignore
263+ add_const = np .add (pd .col ("float64_col" ), 2.4 ), # type: ignore
264+ radd_const = np .add (2.4 , pd .col ("float64_col" )), # type: ignore
265+ add_cols = np .add (pd .col ("float64_col" ), pd .col ("int64_col" )), # type: ignore
266+ )
270267
271268 # int64[pyarrow] vs Int64
272269 assert_frame_equal (bf_result , pd_result , check_dtype = False )
0 commit comments