|
8 | 8 | from pandas import DataFrame
|
9 | 9 | from pandas.compat import zip, iteritems, OrderedDict
|
10 | 10 | from pandas.util.decorators import cache_readonly
|
11 |
| -import pandas.core.common as com |
| 11 | +from pandas.types.api import is_list_like |
12 | 12 | import pandas.util.testing as tm
|
13 | 13 | from pandas.util.testing import (ensure_clean,
|
14 | 14 | assert_is_valid_plot_return_object)
|
@@ -157,7 +157,7 @@ def _check_visible(self, collections, visible=True):
|
157 | 157 | """
|
158 | 158 | from matplotlib.collections import Collection
|
159 | 159 | if not isinstance(collections,
|
160 |
| - Collection) and not com.is_list_like(collections): |
| 160 | + Collection) and not is_list_like(collections): |
161 | 161 | collections = [collections]
|
162 | 162 |
|
163 | 163 | for patch in collections:
|
@@ -242,7 +242,7 @@ def _check_text_labels(self, texts, expected):
|
242 | 242 | expected : str or list-like which has the same length as texts
|
243 | 243 | expected text label, or its list
|
244 | 244 | """
|
245 |
| - if not com.is_list_like(texts): |
| 245 | + if not is_list_like(texts): |
246 | 246 | self.assertEqual(texts.get_text(), expected)
|
247 | 247 | else:
|
248 | 248 | labels = [t.get_text() for t in texts]
|
|
0 commit comments