Skip to content

Commit 2776c7d

Browse files
committed
style fixups
1 parent 4128780 commit 2776c7d

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
import sys
1616
from textwrap import dedent
1717
from typing import (
18-
Callable,
1918
IO,
2019
TYPE_CHECKING,
2120
Any,
21+
Callable,
2222
FrozenSet,
2323
Hashable,
2424
Iterable,
@@ -40,7 +40,7 @@
4040
from pandas._config import get_option
4141

4242
from pandas._libs import algos as libalgos, lib
43-
from pandas._typing import Axes, Dtype, FilePathOrBuffer
43+
from pandas._typing import Axes, Axis, Dtype, FilePathOrBuffer, Level
4444
from pandas.compat import PY37
4545
from pandas.compat._optional import import_optional_dependency
4646
from pandas.compat.numpy import function as nv
@@ -98,7 +98,6 @@
9898
)
9999
from pandas.core.dtypes.missing import isna, notna
100100

101-
from pandas._typing import Axes, Axis, Dtype, FilePathOrBuffer, Level
102101
from pandas.core import algorithms, common as com, nanops, ops
103102
from pandas.core.accessor import CachedAccessor
104103
from pandas.core.arrays import Categorical, ExtensionArray

pandas/core/generic.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@
3030
from pandas._config import config
3131

3232
from pandas._libs import Timestamp, iNaT, lib, properties
33-
from pandas._typing import Dtype, FilePathOrBuffer, FrameOrSeries, JSONSerializable
33+
from pandas._typing import (
34+
Axis,
35+
Dtype,
36+
FilePathOrBuffer,
37+
FrameOrSeries,
38+
JSONSerializable,
39+
Level,
40+
)
3441
from pandas.compat import set_function_name
3542
from pandas.compat._optional import import_optional_dependency
3643
from pandas.compat.numpy import function as nv
@@ -69,7 +76,6 @@
6976
from pandas.core.dtypes.missing import isna, notna
7077

7178
import pandas as pd
72-
from pandas._typing import Axis, Dtype, FilePathOrBuffer, Level, Scalar
7379
from pandas.core import missing, nanops
7480
import pandas.core.algorithms as algos
7581
from pandas.core.base import PandasObject, SelectionMixin

pandas/core/series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from pandas._config import get_option
1313

1414
from pandas._libs import index as libindex, lib, reshape, tslibs
15+
from pandas._typing import Axis, Level
1516
from pandas.compat.numpy import function as nv
1617
from pandas.util._decorators import Appender, Substitution
1718
from pandas.util._validators import validate_bool_kwarg, validate_percentile
@@ -46,7 +47,6 @@
4647
)
4748

4849
import pandas as pd
49-
from pandas._typing import Axis, Level
5050
from pandas.core import algorithms, base, generic, nanops, ops
5151
from pandas.core.accessor import CachedAccessor
5252
from pandas.core.arrays import ExtensionArray, try_cast_to_ea
@@ -3903,7 +3903,7 @@ def rename(
39033903
copy: bool = True,
39043904
inplace: bool = False,
39053905
level: Optional[Level] = None,
3906-
errors: str = "ignore"
3906+
errors: str = "ignore",
39073907
) -> "Series":
39083908
"""
39093909
Alter Series index labels or name.

0 commit comments

Comments
 (0)