File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ class providing the base-class of operations.
7676 ensure_dtype_can_hold_na ,
7777)
7878from 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)
112112from 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
116114from pandas .core .base import (
117115 PandasObject ,
118116 SelectionMixin ,
Original file line number Diff line number Diff 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+
15241525def 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 ):
You can’t perform that action at this time.
0 commit comments