File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2828import pandas .tools .plotting as plotting
2929
3030
31+ def _skip_if_mpl_14_or_dev_boxplot ():
32+ # GH 8382
33+ # Boxplot failures on 1.4 and 1.4.1
34+ # Don't need try / except since that's done at class level
35+ import matplotlib
36+ if matplotlib .__version__ in ('1.4.0' , '1.5.x' ):
37+ raise nose .SkipTest ("Matplotlib Regression in 1.4 and current dev." )
38+
39+
3140def _skip_if_no_scipy_gaussian_kde ():
3241 try :
3342 import scipy
@@ -1790,6 +1799,7 @@ def test_bar_log_subplots(self):
17901799
17911800 @slow
17921801 def test_boxplot (self ):
1802+ _skip_if_mpl_14_or_dev_boxplot ()
17931803 df = self .hist_df
17941804 series = df ['height' ]
17951805 numeric_cols = df ._get_numeric_data ().columns
@@ -1823,6 +1833,7 @@ def test_boxplot(self):
18231833
18241834 @slow
18251835 def test_boxplot_vertical (self ):
1836+ _skip_if_mpl_14_or_dev_boxplot ()
18261837 df = self .hist_df
18271838 series = df ['height' ]
18281839 numeric_cols = df ._get_numeric_data ().columns
@@ -1982,6 +1993,7 @@ def _check_ax_limits(col, ax):
19821993
19831994 @slow
19841995 def test_boxplot_empty_column (self ):
1996+ _skip_if_mpl_14_or_dev_boxplot ()
19851997 df = DataFrame (np .random .randn (20 , 4 ))
19861998 df .loc [:, 0 ] = np .nan
19871999 _check_plot_works (df .boxplot , return_type = 'axes' )
You can’t perform that action at this time.
0 commit comments