Skip to content

Commit

Permalink
Added test case
Browse files Browse the repository at this point in the history
  • Loading branch information
MomIsBestFriend committed Jan 12, 2020
1 parent 13bbe7c commit 7864171
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pandas/tests/reductions/test_reductions.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,15 +811,6 @@ def test_all_any(self):
assert not bool_series.all()
assert bool_series.any()

# GH 12863
s1 = Series(["abc", True])
s2 = Series(["abc", False])

assert s1.all()
assert s1.any()

assert not s2.all()
assert s2.any()

def test_all_any_params(self):
# Check skipna, with implicit 'object' dtype.
Expand Down Expand Up @@ -856,6 +847,18 @@ def test_all_any_params(self):
with pytest.raises(NotImplementedError):
s.all(bool_only=True)

def test_all_any_object_dtype(self):
# GH 12863

s1 = Series(["abc", True])
s2 = Series(["abc", False])

assert s1.all()
assert s1.any()

assert not s2.all()
assert s2.any()

def test_timedelta64_analytics(self):

# index min/max
Expand Down

0 comments on commit 7864171

Please sign in to comment.