File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -811,15 +811,6 @@ def test_all_any(self):
811
811
assert not bool_series .all ()
812
812
assert bool_series .any ()
813
813
814
- # GH 12863
815
- s1 = Series (["abc" , True ])
816
- s2 = Series (["abc" , False ])
817
-
818
- assert s1 .all ()
819
- assert s1 .any ()
820
-
821
- assert not s2 .all ()
822
- assert s2 .any ()
823
814
824
815
def test_all_any_params (self ):
825
816
# Check skipna, with implicit 'object' dtype.
@@ -856,6 +847,18 @@ def test_all_any_params(self):
856
847
with pytest .raises (NotImplementedError ):
857
848
s .all (bool_only = True )
858
849
850
+ def test_all_any_object_dtype (self ):
851
+ # GH 12863
852
+
853
+ s1 = Series (["abc" , True ])
854
+ s2 = Series (["abc" , False ])
855
+
856
+ assert s1 .all ()
857
+ assert s1 .any ()
858
+
859
+ assert not s2 .all ()
860
+ assert s2 .any ()
861
+
859
862
def test_timedelta64_analytics (self ):
860
863
861
864
# index min/max
You can’t perform that action at this time.
0 commit comments