21
21
from numpy .random import rand , randn
22
22
23
23
import pandas .plotting as plotting
24
- from pandas .tests . plotting .common import (TestPlotBase , _check_plot_works ,
24
+ from pandas .plotting . tests .common import (TestPlotBase , _check_plot_works ,
25
25
_skip_if_no_scipy_gaussian_kde ,
26
26
_ok_for_gaussian_kde )
27
27
@@ -1967,7 +1967,7 @@ def test_unordered_ts(self):
1967
1967
1968
1968
def test_kind_both_ways (self ):
1969
1969
df = DataFrame ({'x' : [1 , 2 , 3 ]})
1970
- for kind in plotting .plotting ._common_kinds :
1970
+ for kind in plotting .core ._common_kinds :
1971
1971
if not _ok_for_gaussian_kde (kind ):
1972
1972
continue
1973
1973
df .plot (kind = kind )
@@ -1978,7 +1978,7 @@ def test_kind_both_ways(self):
1978
1978
1979
1979
def test_all_invalid_plot_data (self ):
1980
1980
df = DataFrame (list ('abcd' ))
1981
- for kind in plotting .plotting ._common_kinds :
1981
+ for kind in plotting .core ._common_kinds :
1982
1982
if not _ok_for_gaussian_kde (kind ):
1983
1983
continue
1984
1984
with tm .assertRaises (TypeError ):
@@ -1989,7 +1989,7 @@ def test_partially_invalid_plot_data(self):
1989
1989
with tm .RNGContext (42 ):
1990
1990
df = DataFrame (randn (10 , 2 ), dtype = object )
1991
1991
df [np .random .rand (df .shape [0 ]) > 0.5 ] = 'a'
1992
- for kind in plotting .plotting ._common_kinds :
1992
+ for kind in plotting .core ._common_kinds :
1993
1993
if not _ok_for_gaussian_kde (kind ):
1994
1994
continue
1995
1995
with tm .assertRaises (TypeError ):
@@ -2442,7 +2442,7 @@ def test_memory_leak(self):
2442
2442
import gc
2443
2443
2444
2444
results = {}
2445
- for kind in plotting .plotting ._plot_klass .keys ():
2445
+ for kind in plotting .core ._plot_klass .keys ():
2446
2446
if not _ok_for_gaussian_kde (kind ):
2447
2447
continue
2448
2448
args = {}
@@ -2641,7 +2641,7 @@ def test_df_grid_settings(self):
2641
2641
# Make sure plot defaults to rcParams['axes.grid'] setting, GH 9792
2642
2642
self ._check_grid_settings (
2643
2643
DataFrame ({'a' : [1 , 2 , 3 ], 'b' : [2 , 3 , 4 ]}),
2644
- plotting .plotting ._dataframe_kinds , kws = {'x' : 'a' , 'y' : 'b' })
2644
+ plotting .core ._dataframe_kinds , kws = {'x' : 'a' , 'y' : 'b' })
2645
2645
2646
2646
def test_option_mpl_style (self ):
2647
2647
with tm .assert_produces_warning (FutureWarning ,
0 commit comments