|
1 | 1 | # pylint: disable=E1101,W0232
|
2 | 2 |
|
3 |
| -import numpy as np |
4 |
| -from warnings import warn |
5 | 3 | import textwrap
|
| 4 | +from warnings import warn |
6 | 5 |
|
7 |
| -from pandas import compat |
8 |
| -from pandas.compat import u, lzip |
9 |
| -from pandas._libs import lib, algos as libalgos |
| 6 | +import numpy as np |
| 7 | + |
| 8 | +from pandas._libs import algos as libalgos, lib |
| 9 | +import pandas.compat as compat |
| 10 | +from pandas.compat import lzip, u |
| 11 | +from pandas.compat.numpy import function as nv |
| 12 | +from pandas.util._decorators import ( |
| 13 | + Appender, Substitution, cache_readonly, deprecate_kwarg) |
| 14 | +from pandas.util._validators import validate_bool_kwarg, validate_fillna_kwargs |
10 | 15 |
|
11 |
| -from pandas.core.dtypes.generic import ( |
12 |
| - ABCSeries, ABCIndexClass, ABCCategoricalIndex) |
13 |
| -from pandas.core.dtypes.missing import isna, notna |
14 |
| -from pandas.core.dtypes.inference import is_hashable |
15 | 16 | from pandas.core.dtypes.cast import (
|
16 |
| - maybe_infer_to_datetimelike, |
17 |
| - coerce_indexer_dtype) |
18 |
| -from pandas.core.dtypes.dtypes import CategoricalDtype |
| 17 | + coerce_indexer_dtype, maybe_infer_to_datetimelike) |
19 | 18 | from pandas.core.dtypes.common import (
|
20 |
| - ensure_int64, |
21 |
| - ensure_object, |
22 |
| - ensure_platform_int, |
23 |
| - is_extension_array_dtype, |
24 |
| - is_dtype_equal, |
25 |
| - is_datetimelike, |
26 |
| - is_datetime64_dtype, |
27 |
| - is_timedelta64_dtype, |
28 |
| - is_categorical, |
29 |
| - is_categorical_dtype, |
30 |
| - is_float_dtype, |
31 |
| - is_integer_dtype, |
32 |
| - is_object_dtype, |
33 |
| - is_list_like, is_sequence, |
34 |
| - is_scalar, is_iterator, |
35 |
| - is_dict_like) |
36 |
| - |
37 |
| -from pandas.core.algorithms import factorize, take_1d, unique1d, take |
| 19 | + ensure_int64, ensure_object, ensure_platform_int, is_categorical, |
| 20 | + is_categorical_dtype, is_datetime64_dtype, is_datetimelike, is_dict_like, |
| 21 | + is_dtype_equal, is_extension_array_dtype, is_float_dtype, is_integer_dtype, |
| 22 | + is_iterator, is_list_like, is_object_dtype, is_scalar, is_sequence, |
| 23 | + is_timedelta64_dtype) |
| 24 | +from pandas.core.dtypes.dtypes import CategoricalDtype |
| 25 | +from pandas.core.dtypes.generic import ( |
| 26 | + ABCCategoricalIndex, ABCIndexClass, ABCSeries) |
| 27 | +from pandas.core.dtypes.inference import is_hashable |
| 28 | +from pandas.core.dtypes.missing import isna, notna |
| 29 | + |
38 | 30 | from pandas.core.accessor import PandasDelegate, delegate_names
|
39 |
| -from pandas.core.base import (PandasObject, |
40 |
| - NoNewAttributesMixin, _shared_docs) |
| 31 | +import pandas.core.algorithms as algorithms |
| 32 | +from pandas.core.algorithms import factorize, take, take_1d, unique1d |
| 33 | +from pandas.core.base import NoNewAttributesMixin, PandasObject, _shared_docs |
41 | 34 | import pandas.core.common as com
|
| 35 | +from pandas.core.config import get_option |
42 | 36 | from pandas.core.missing import interpolate_2d
|
43 |
| -from pandas.compat.numpy import function as nv |
44 |
| -from pandas.util._decorators import ( |
45 |
| - Appender, cache_readonly, deprecate_kwarg, Substitution) |
46 |
| - |
47 |
| -import pandas.core.algorithms as algorithms |
48 |
| - |
49 | 37 | from pandas.core.sorting import nargsort
|
50 | 38 |
|
51 | 39 | from pandas.io.formats import console
|
52 | 40 | from pandas.io.formats.terminal import get_terminal_size
|
53 |
| -from pandas.util._validators import validate_bool_kwarg, validate_fillna_kwargs |
54 |
| -from pandas.core.config import get_option |
55 | 41 |
|
56 | 42 | from .base import ExtensionArray
|
57 | 43 |
|
58 |
| - |
59 | 44 | _take_msg = textwrap.dedent("""\
|
60 | 45 | Interpreting negative values in 'indexer' as missing values.
|
61 | 46 | In the future, this will change to meaning positional indices
|
|
0 commit comments