File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 28
28
import pandas .tools .plotting as plotting
29
29
30
30
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
+
31
40
def _skip_if_no_scipy_gaussian_kde ():
32
41
try :
33
42
import scipy
@@ -1790,6 +1799,7 @@ def test_bar_log_subplots(self):
1790
1799
1791
1800
@slow
1792
1801
def test_boxplot (self ):
1802
+ _skip_if_mpl_14_or_dev_boxplot ()
1793
1803
df = self .hist_df
1794
1804
series = df ['height' ]
1795
1805
numeric_cols = df ._get_numeric_data ().columns
@@ -1823,6 +1833,7 @@ def test_boxplot(self):
1823
1833
1824
1834
@slow
1825
1835
def test_boxplot_vertical (self ):
1836
+ _skip_if_mpl_14_or_dev_boxplot ()
1826
1837
df = self .hist_df
1827
1838
series = df ['height' ]
1828
1839
numeric_cols = df ._get_numeric_data ().columns
@@ -1982,6 +1993,7 @@ def _check_ax_limits(col, ax):
1982
1993
1983
1994
@slow
1984
1995
def test_boxplot_empty_column (self ):
1996
+ _skip_if_mpl_14_or_dev_boxplot ()
1985
1997
df = DataFrame (np .random .randn (20 , 4 ))
1986
1998
df .loc [:, 0 ] = np .nan
1987
1999
_check_plot_works (df .boxplot , return_type = 'axes' )
You can’t perform that action at this time.
0 commit comments