55 Union ,
66)
77
8- import matplotlib as mpl
98from matplotlib .axes import Axes
109from matplotlib .figure import Figure
1110import matplotlib .pyplot as plt
1413import numpy .typing as npt
1514import pandas as pd
1615from pandas import Series
17- from pandas .util .version import Version
1816import pytest
1917from typing_extensions import assert_type
2018
@@ -579,22 +577,13 @@ def test_plot_keywords(close_figures):
579577 )
580578
581579 df = pd .DataFrame (np .random .rand (10 , 5 ), columns = ["A" , "B" , "C" , "D" , "E" ])
582- if Version (mpl .__version__ ) >= Version ("3.10.1" ):
583- check (
584- assert_type (
585- df .plot (kind = "box" , orientation = "vertical" , positions = [1 , 4 , 5 , 6 , 8 ]),
586- Axes ,
587- ),
588- Axes ,
589- )
590- else :
591- check (
592- assert_type (
593- df .plot (kind = "box" , vert = False , positions = [1 , 4 , 5 , 6 , 8 ]),
594- Axes ,
595- ),
580+ check (
581+ assert_type (
582+ df .plot (kind = "box" , orientation = "vertical" , positions = [1 , 4 , 5 , 6 , 8 ]),
596583 Axes ,
597- )
584+ ),
585+ Axes ,
586+ )
598587
599588
600589def test_plot_subplot_changes_150 () -> None :
@@ -620,7 +609,7 @@ def test_grouped_dataframe_boxplot(close_figures):
620609 check (assert_type (grouped .boxplot (subplots = True ), Series ), Series )
621610
622611 # a single plot
623- if not PD_LTE_22 and Version ( mpl . __version__ ) >= Version ( "3.10.1" ) :
612+ if not PD_LTE_22 :
624613 check (
625614 assert_type (
626615 grouped .boxplot (
@@ -665,7 +654,7 @@ def test_grouped_dataframe_boxplot_single(close_figures):
665654 Axes ,
666655 )
667656
668- if not PD_LTE_22 and Version ( mpl . __version__ ) >= Version ( "3.10.1" ) :
657+ if not PD_LTE_22 :
669658 check (
670659 assert_type (
671660 grouped .boxplot (
0 commit comments