|
3 | 3 | """
|
4 | 4 | from __future__ import division
|
5 | 5 |
|
6 |
| -# pylint: disable=E1101,E1103 |
7 |
| -# pylint: disable=W0703,W0622,W0613,W0201 |
8 |
| - |
9 | 6 | import warnings
|
10 | 7 | from textwrap import dedent
|
11 | 8 |
|
12 | 9 | import numpy as np
|
13 | 10 | import numpy.ma as ma
|
14 | 11 |
|
| 12 | +import pandas.core.algorithms as algorithms |
| 13 | +import pandas.core.common as com |
| 14 | +import pandas.core.indexes.base as ibase |
| 15 | +import pandas.core.nanops as nanops |
| 16 | +import pandas.core.ops as ops |
| 17 | +import pandas.io.formats.format as fmt |
| 18 | +import pandas.plotting._core as gfx |
| 19 | +from pandas import compat |
| 20 | +from pandas._libs import iNaT, index as libindex, lib, tslibs |
| 21 | +from pandas.compat import ( |
| 22 | + PY36, OrderedDict, StringIO, get_range_parameters, range, u, zip |
| 23 | +) |
| 24 | +from pandas.compat.numpy import function as nv |
| 25 | +from pandas.core import base, generic |
15 | 26 | from pandas.core.accessor import CachedAccessor
|
16 | 27 | from pandas.core.arrays import ExtensionArray
|
| 28 | +from pandas.core.arrays.categorical import Categorical, CategoricalAccessor |
| 29 | +from pandas.core.config import get_option |
| 30 | +from pandas.core.dtypes.cast import ( |
| 31 | + construct_1d_arraylike_from_scalar, construct_1d_ndarray_preserving_na, |
| 32 | + construct_1d_object_array_from_listlike, infer_dtype_from_scalar, |
| 33 | + maybe_cast_to_datetime, maybe_cast_to_integer_array, maybe_castable, |
| 34 | + maybe_convert_platform, maybe_upcast |
| 35 | +) |
17 | 36 | from pandas.core.dtypes.common import (
|
18 |
| - is_categorical_dtype, |
19 |
| - is_string_like, |
20 |
| - is_bool, |
21 |
| - is_integer, is_integer_dtype, |
22 |
| - is_float_dtype, |
23 |
| - is_extension_type, |
24 |
| - is_extension_array_dtype, |
25 |
| - is_datetimelike, |
26 |
| - is_datetime64tz_dtype, |
27 |
| - is_timedelta64_dtype, |
28 |
| - is_object_dtype, |
29 |
| - is_list_like, |
30 |
| - is_hashable, |
31 |
| - is_iterator, |
32 |
| - is_dict_like, |
33 |
| - is_scalar, |
34 |
| - _is_unorderable_exception, |
35 |
| - ensure_platform_int, |
36 |
| - pandas_dtype) |
| 37 | + _is_unorderable_exception, ensure_platform_int, is_bool, |
| 38 | + is_categorical_dtype, is_datetime64tz_dtype, is_datetimelike, is_dict_like, |
| 39 | + is_extension_array_dtype, is_extension_type, is_float_dtype, is_hashable, |
| 40 | + is_integer, is_integer_dtype, is_iterator, is_list_like, is_object_dtype, |
| 41 | + is_scalar, is_string_like, is_timedelta64_dtype, pandas_dtype |
| 42 | +) |
37 | 43 | from pandas.core.dtypes.generic import (
|
38 |
| - ABCSparseArray, ABCDataFrame, ABCIndexClass, |
39 |
| - ABCSeries, ABCSparseSeries) |
40 |
| -from pandas.core.dtypes.cast import ( |
41 |
| - maybe_upcast, infer_dtype_from_scalar, |
42 |
| - maybe_convert_platform, |
43 |
| - maybe_cast_to_datetime, maybe_castable, |
44 |
| - construct_1d_arraylike_from_scalar, |
45 |
| - construct_1d_ndarray_preserving_na, |
46 |
| - construct_1d_object_array_from_listlike, |
47 |
| - maybe_cast_to_integer_array) |
| 44 | + ABCDataFrame, ABCIndexClass, ABCSeries, ABCSparseArray, ABCSparseSeries |
| 45 | +) |
48 | 46 | from pandas.core.dtypes.missing import (
|
49 |
| - isna, |
50 |
| - notna, |
51 |
| - remove_na_arraylike, |
52 |
| - na_value_for_dtype) |
53 |
| - |
54 |
| -from pandas.core.index import (Index, MultiIndex, InvalidIndexError, |
55 |
| - Float64Index, ensure_index) |
56 |
| -from pandas.core.indexing import check_bool_indexer, maybe_convert_indices |
57 |
| -from pandas.core import generic, base |
58 |
| -from pandas.core.internals import SingleBlockManager |
59 |
| -from pandas.core.arrays.categorical import Categorical, CategoricalAccessor |
| 47 | + isna, na_value_for_dtype, notna, remove_na_arraylike |
| 48 | +) |
| 49 | +from pandas.core.index import ( |
| 50 | + Float64Index, Index, InvalidIndexError, MultiIndex, ensure_index |
| 51 | +) |
60 | 52 | from pandas.core.indexes.accessors import CombinedDatetimelikeProperties
|
61 | 53 | from pandas.core.indexes.datetimes import DatetimeIndex
|
62 |
| -from pandas.core.indexes.timedeltas import TimedeltaIndex |
63 | 54 | from pandas.core.indexes.period import PeriodIndex
|
64 |
| -from pandas import compat |
| 55 | +from pandas.core.indexes.timedeltas import TimedeltaIndex |
| 56 | +from pandas.core.indexing import check_bool_indexer, maybe_convert_indices |
| 57 | +from pandas.core.internals import SingleBlockManager |
| 58 | +from pandas.core.strings import StringMethods |
| 59 | +from pandas.core.tools.datetimes import to_datetime |
65 | 60 | from pandas.io.formats.terminal import get_terminal_size
|
66 |
| -from pandas.compat import ( |
67 |
| - zip, u, OrderedDict, StringIO, range, get_range_parameters, PY36) |
68 |
| -from pandas.compat.numpy import function as nv |
69 |
| - |
70 |
| -import pandas.core.ops as ops |
71 |
| -import pandas.core.algorithms as algorithms |
72 |
| - |
73 |
| -import pandas.core.common as com |
74 |
| -import pandas.core.nanops as nanops |
75 |
| -import pandas.core.indexes.base as ibase |
76 |
| - |
77 |
| -import pandas.io.formats.format as fmt |
78 |
| -from pandas.util._decorators import Appender, deprecate, Substitution |
| 61 | +from pandas.util._decorators import Appender, Substitution, deprecate |
79 | 62 | from pandas.util._validators import validate_bool_kwarg
|
80 | 63 |
|
81 |
| -from pandas._libs import index as libindex, tslibs, lib, iNaT |
82 |
| -from pandas.core.config import get_option |
83 |
| -from pandas.core.strings import StringMethods |
84 |
| -from pandas.core.tools.datetimes import to_datetime |
| 64 | +# pylint: disable=E1101,E1103 |
| 65 | +# pylint: disable=W0703,W0622,W0613,W0201 |
85 | 66 |
|
86 |
| -import pandas.plotting._core as gfx |
87 | 67 |
|
88 | 68 | __all__ = ['Series']
|
89 | 69 |
|
|
0 commit comments