|
1 | 1 | # pylint: disable=W0231,E1101
|
2 | 2 | import collections
|
3 | 3 | import functools
|
4 |
| -import warnings |
5 |
| -import operator |
6 |
| -import weakref |
7 | 4 | import gc
|
8 | 5 | import json
|
| 6 | +import operator |
| 7 | +import warnings |
| 8 | +import weakref |
9 | 9 |
|
10 | 10 | import numpy as np
|
11 |
| -import pandas as pd |
12 | 11 |
|
13 |
| -from pandas._libs import properties, Timestamp, iNaT |
| 12 | +from pandas._libs import Timestamp, iNaT, properties |
| 13 | +import pandas.compat as compat |
| 14 | +from pandas.compat import ( |
| 15 | + cPickle as pkl, isidentifier, lrange, lzip, map, set_function_name, |
| 16 | + string_types, to_str, zip) |
| 17 | +from pandas.compat.numpy import function as nv |
14 | 18 | from pandas.errors import AbstractMethodError
|
| 19 | +from pandas.util._decorators import ( |
| 20 | + Appender, Substitution, rewrite_axis_style_signature) |
| 21 | +from pandas.util._validators import validate_bool_kwarg, validate_fillna_kwargs |
15 | 22 |
|
16 |
| -from pandas.core.dtypes.common import ( |
17 |
| - ensure_int64, |
18 |
| - ensure_object, |
19 |
| - is_scalar, |
20 |
| - is_number, |
21 |
| - is_integer, is_bool, |
22 |
| - is_bool_dtype, |
23 |
| - is_numeric_dtype, |
24 |
| - is_datetime64_any_dtype, |
25 |
| - is_timedelta64_dtype, |
26 |
| - is_datetime64tz_dtype, |
27 |
| - is_list_like, |
28 |
| - is_dict_like, |
29 |
| - is_re_compilable, |
30 |
| - is_period_arraylike, |
31 |
| - is_object_dtype, |
32 |
| - is_extension_array_dtype, |
33 |
| - pandas_dtype) |
34 | 23 | from pandas.core.dtypes.cast import maybe_promote, maybe_upcast_putmask
|
| 24 | +from pandas.core.dtypes.common import ( |
| 25 | + ensure_int64, ensure_object, is_bool, is_bool_dtype, |
| 26 | + is_datetime64_any_dtype, is_datetime64tz_dtype, is_dict_like, |
| 27 | + is_extension_array_dtype, is_integer, is_list_like, is_number, |
| 28 | + is_numeric_dtype, is_object_dtype, is_period_arraylike, is_re_compilable, |
| 29 | + is_scalar, is_timedelta64_dtype, pandas_dtype) |
| 30 | +from pandas.core.dtypes.generic import ABCDataFrame, ABCPanel, ABCSeries |
35 | 31 | from pandas.core.dtypes.inference import is_hashable
|
36 | 32 | from pandas.core.dtypes.missing import isna, notna
|
37 |
| -from pandas.core.dtypes.generic import ABCSeries, ABCPanel, ABCDataFrame |
38 | 33 |
|
| 34 | +import pandas as pd |
| 35 | +from pandas.core import config, missing, nanops |
| 36 | +import pandas.core.algorithms as algos |
39 | 37 | from pandas.core.base import PandasObject, SelectionMixin
|
40 |
| -from pandas.core.index import (Index, MultiIndex, ensure_index, |
41 |
| - InvalidIndexError, RangeIndex) |
42 |
| -import pandas.core.indexing as indexing |
| 38 | +import pandas.core.common as com |
| 39 | +from pandas.core.index import ( |
| 40 | + Index, InvalidIndexError, MultiIndex, RangeIndex, ensure_index) |
43 | 41 | from pandas.core.indexes.datetimes import DatetimeIndex
|
44 |
| -from pandas.core.indexes.period import PeriodIndex, Period |
| 42 | +from pandas.core.indexes.period import Period, PeriodIndex |
| 43 | +import pandas.core.indexing as indexing |
45 | 44 | from pandas.core.internals import BlockManager
|
46 |
| -import pandas.core.algorithms as algos |
47 |
| -import pandas.core.common as com |
48 |
| -import pandas.core.missing as missing |
| 45 | +from pandas.core.ops import _align_method_FRAME |
| 46 | + |
| 47 | +from pandas.io.formats.format import DataFrameFormatter, format_percentiles |
49 | 48 | from pandas.io.formats.printing import pprint_thing
|
50 |
| -from pandas.io.formats.format import format_percentiles, DataFrameFormatter |
51 | 49 | from pandas.tseries.frequencies import to_offset
|
52 |
| -from pandas import compat |
53 |
| -from pandas.compat.numpy import function as nv |
54 |
| -from pandas.compat import (map, zip, lzip, lrange, string_types, to_str, |
55 |
| - isidentifier, set_function_name, cPickle as pkl) |
56 |
| -from pandas.core.ops import _align_method_FRAME |
57 |
| -import pandas.core.nanops as nanops |
58 |
| -from pandas.util._decorators import (Appender, Substitution, |
59 |
| - rewrite_axis_style_signature) |
60 |
| -from pandas.util._validators import validate_bool_kwarg, validate_fillna_kwargs |
61 |
| -from pandas.core import config |
62 | 50 |
|
63 | 51 | # goal is to be able to define the docs close to function, while still being
|
64 | 52 | # able to share
|
|
0 commit comments