Partialy fix issue #23334 - isort pandas/core/groupby directory (#23341) · pandas-dev/pandas@437f31c (original) (raw)
`@@ -7,48 +7,40 @@
`
7
7
`"""
`
8
8
``
9
9
`import collections
`
10
``
`-
import warnings
`
11
10
`import copy
`
12
``
`-
from textwrap import dedent
`
``
11
`+
import warnings
`
13
12
`from functools import partial
`
``
13
`+
from textwrap import dedent
`
14
14
``
15
15
`import numpy as np
`
16
16
``
17
``
`-
from pandas._libs import lib, Timestamp
`
18
``
`-
from pandas.util._decorators import Substitution, Appender
`
19
``
`-
from pandas import compat
`
20
``
-
21
``
`-
import pandas.core.indexes.base as ibase
`
``
17
`+
import pandas.core.algorithms as algorithms
`
22
18
`import pandas.core.common as com
`
23
``
`-
from pandas.core.panel import Panel
`
``
19
`+
import pandas.core.indexes.base as ibase
`
``
20
`+
from pandas import compat
`
``
21
`+
from pandas._libs import Timestamp, lib
`
24
22
`from pandas.compat import lzip, map
`
25
``
-
26
``
`-
from pandas.core.series import Series
`
27
``
`-
from pandas.core.generic import _shared_docs
`
28
``
`-
from pandas.core.groupby.groupby import (
`
29
``
`-
GroupBy, _apply_docs, _transform_template)
`
30
``
`-
from pandas.core.generic import NDFrame
`
31
``
`-
from pandas.core.groupby import base
`
``
23
`+
from pandas.compat.numpy import _np_version_under1p13
`
``
24
`+
from pandas.core.arrays import Categorical
`
``
25
`+
from pandas.core.base import DataError, SpecificationError
`
``
26
`+
from pandas.core.dtypes.cast import maybe_downcast_to_dtype
`
32
27
`from pandas.core.dtypes.common import (
`
33
``
`-
is_scalar,
`
34
``
`-
is_bool,
`
35
``
`-
is_datetimelike,
`
36
``
`-
is_numeric_dtype,
`
37
``
`-
is_integer_dtype,
`
38
``
`-
is_interval_dtype,
`
39
``
`-
ensure_platform_int,
`
40
``
`-
ensure_int64)
`
``
28
`+
ensure_int64, ensure_platform_int, is_bool, is_datetimelike,
`
``
29
`+
is_integer_dtype, is_interval_dtype, is_numeric_dtype, is_scalar
`
``
30
`+
)
`
41
31
`from pandas.core.dtypes.missing import isna, notna
`
42
``
`-
import pandas.core.algorithms as algorithms
`
43
32
`from pandas.core.frame import DataFrame
`
44
``
`-
from pandas.core.dtypes.cast import maybe_downcast_to_dtype
`
45
``
`-
from pandas.core.base import SpecificationError, DataError
`
46
``
`-
from pandas.core.index import Index, MultiIndex, CategoricalIndex
`
47
``
`-
from pandas.core.arrays import Categorical
`
``
33
`+
from pandas.core.generic import NDFrame, _shared_docs
`
``
34
`+
from pandas.core.groupby import base
`
``
35
`+
from pandas.core.groupby.groupby import (
`
``
36
`+
GroupBy, _apply_docs, _transform_template
`
``
37
`+
)
`
``
38
`+
from pandas.core.index import CategoricalIndex, Index, MultiIndex
`
48
39
`from pandas.core.internals import BlockManager, make_block
`
49
``
`-
from pandas.compat.numpy import _np_version_under1p13
`
50
``
-
``
40
`+
from pandas.core.panel import Panel
`
``
41
`+
from pandas.core.series import Series
`
51
42
`from pandas.plotting._core import boxplot_frame_groupby
`
``
43
`+
from pandas.util._decorators import Appender, Substitution
`
52
44
``
53
45
``
54
46
`class NDFrameGroupBy(GroupBy):
`