@@ -265,20 +265,15 @@ def test_bar(scalars_dfs, col_names, alias):
265265
266266
267267@pytest .mark .parametrize (
268- ("col_names" , "alias" ),
268+ ("col_names" ,),
269269 [
270- pytest .param (["int64_col" , "float64_col" , "int64_too" ], True , id = "df_alias" ),
271- pytest .param (["int64_col" , "float64_col" , "int64_too" ], False , id = "df" ),
272- pytest .param (["int64_col" ], True , id = "series_alias" ),
273- pytest .param (["int64_col" ], False , id = "series" ),
270+ pytest .param (["int64_col" , "float64_col" , "int64_too" ], id = "df" ),
271+ pytest .param (["int64_col" ], id = "series" ),
274272 ],
275273)
276- def test_barh (scalars_dfs , col_names , alias ):
274+ def test_barh (scalars_dfs , col_names ):
277275 scalars_df , scalars_pandas_df = scalars_dfs
278- if alias :
279- ax = scalars_df [col_names ].barh ()
280- else :
281- ax = scalars_df [col_names ].plot .barh ()
276+ ax = scalars_df [col_names ].plot .barh ()
282277 pd_ax = scalars_pandas_df [col_names ].plot .barh ()
283278 tm .assert_almost_equal (ax .get_xticks (), pd_ax .get_xticks ())
284279 tm .assert_almost_equal (ax .get_yticks (), pd_ax .get_yticks ())
@@ -288,20 +283,15 @@ def test_barh(scalars_dfs, col_names, alias):
288283
289284
290285@pytest .mark .parametrize (
291- ("col_names" , "alias" ),
286+ ("col_names" ,),
292287 [
293- pytest .param (["int64_col" , "float64_col" , "int64_too" ], True , id = "df_alias" ),
294- pytest .param (["int64_col" , "float64_col" , "int64_too" ], False , id = "df" ),
295- pytest .param (["int64_col" ], True , id = "series_alias" ),
296- pytest .param (["int64_col" ], False , id = "series" ),
288+ pytest .param (["int64_col" , "float64_col" , "int64_too" ], id = "df" ),
289+ pytest .param (["int64_col" ], id = "series" ),
297290 ],
298291)
299- def test_pie (scalars_dfs , col_names , alias ):
292+ def test_pie (scalars_dfs , col_names ):
300293 scalars_df , scalars_pandas_df = scalars_dfs
301- if alias :
302- ax = scalars_df [col_names ].abs ().pie (y = "int64_col" )
303- else :
304- ax = scalars_df [col_names ].abs ().plot .pie (y = "int64_col" )
294+ ax = scalars_df [col_names ].abs ().plot .pie (y = "int64_col" )
305295 pd_ax = scalars_pandas_df [col_names ].abs ().plot .pie (y = "int64_col" )
306296 tm .assert_almost_equal (ax .get_xticks (), pd_ax .get_xticks ())
307297 tm .assert_almost_equal (ax .get_yticks (), pd_ax .get_yticks ())
0 commit comments