Skip to content

Commit 31c2042

Browse files
committed
Add UT for bug in GH29478
1 parent db60ab6 commit 31c2042

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/series/test_analytics.py

+4
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@ def test_count(self, datetime_series):
554554
ts.iloc[[0, 3, 5]] = np.nan
555555
tm.assert_series_equal(ts.count(level=1), right - 1)
556556

557+
# GH29478
558+
with pd.option_context("use_inf_as_na", True):
559+
assert pd.Series([pd.Timestamp("1990/1/1")]).count() == 1
560+
557561
def test_dot(self):
558562
a = Series(np.random.randn(4), index=["p", "q", "r", "s"])
559563
b = DataFrame(

0 commit comments

Comments
 (0)