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