|
24 | 24 | import numpy.ma as ma
|
25 | 25 |
|
26 | 26 | from pandas.core.common import (isnull, notnull, PandasError, _try_sort,
|
27 |
| - _default_index, _maybe_upcast, _is_sequence, |
| 27 | + _default_index, _maybe_upcast, is_sequence, |
28 | 28 | _infer_dtype_from_scalar, _values_from_object,
|
29 | 29 | is_list_like, _get_dtype, _maybe_box_datetimelike,
|
30 | 30 | is_categorical_dtype)
|
@@ -2255,7 +2255,7 @@ def reindexer(value):
|
2255 | 2255 | elif isinstance(value, Categorical):
|
2256 | 2256 | value = value.copy()
|
2257 | 2257 |
|
2258 |
| - elif (isinstance(value, Index) or _is_sequence(value)): |
| 2258 | + elif (isinstance(value, Index) or is_sequence(value)): |
2259 | 2259 | from pandas.core.series import _sanitize_index
|
2260 | 2260 | value = _sanitize_index(value, self.index, copy=False)
|
2261 | 2261 | if not isinstance(value, (np.ndarray, Index)):
|
@@ -2844,7 +2844,7 @@ def sort_index(self, axis=0, by=None, ascending=True, inplace=False,
|
2844 | 2844 | '(rows)')
|
2845 | 2845 | if not isinstance(by, list):
|
2846 | 2846 | by = [by]
|
2847 |
| - if com._is_sequence(ascending) and len(by) != len(ascending): |
| 2847 | + if com.is_sequence(ascending) and len(by) != len(ascending): |
2848 | 2848 | raise ValueError('Length of ascending (%d) != length of by'
|
2849 | 2849 | ' (%d)' % (len(ascending), len(by)))
|
2850 | 2850 | if len(by) > 1:
|
@@ -3694,7 +3694,7 @@ def _apply_standard(self, func, axis, ignore_failures=False, reduce=True):
|
3694 | 3694 | com.pprint_thing(k),)
|
3695 | 3695 | raise
|
3696 | 3696 |
|
3697 |
| - if len(results) > 0 and _is_sequence(results[0]): |
| 3697 | + if len(results) > 0 and is_sequence(results[0]): |
3698 | 3698 | if not isinstance(results[0], Series):
|
3699 | 3699 | index = res_columns
|
3700 | 3700 | else:
|
|
0 commit comments