Skip to content

Commit 63f8443

Browse files
author
Zrahay
committed
Apply pre-commit formatting fixes
1 parent 8056bb8 commit 63f8443

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pandas/core/groupby/groupby.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class providing the base-class of operations.
7676
ensure_dtype_can_hold_na,
7777
)
7878
from pandas.core.dtypes.common import (
79+
is_bool,
7980
is_bool_dtype,
8081
is_float_dtype,
8182
is_hashable,
@@ -86,7 +87,6 @@ class providing the base-class of operations.
8687
is_object_dtype,
8788
is_scalar,
8889
is_string_dtype,
89-
is_bool,
9090
needs_i8_conversion,
9191
pandas_dtype,
9292
)
@@ -110,9 +110,7 @@ class providing the base-class of operations.
110110
SparseArray,
111111
)
112112
from pandas.core.arrays.string_ import StringDtype
113-
from pandas.core.arrays.string_arrow import (
114-
ArrowStringArray,
115-
)
113+
from pandas.core.arrays.string_arrow import ArrowStringArray
116114
from pandas.core.base import (
117115
PandasObject,
118116
SelectionMixin,

pandas/tests/groupby/test_reductions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,10 +1521,11 @@ def test_groupby_std_datetimelike():
15211521
expected = DataFrame({"A": exp_ser, "B": exp_ser, "C": exp_ser})
15221522
tm.assert_frame_equal(result, expected)
15231523

1524+
15241525
def test_mean_numeric_only_validates_bool():
15251526
# GH#62778
15261527

1527-
df = pd.DataFrame({"A": range(5), "B": range(5)})
1528+
df = DataFrame({"A": range(5), "B": range(5)})
15281529

15291530
msg = "numeric_only accepts only Boolean values"
15301531
with pytest.raises(ValueError, match=msg):

0 commit comments

Comments
 (0)