Skip to content

Commit 70ef8e2

Browse files
committed
TST: Add tests string series min max
In line with pandas-dev#31746
1 parent e08ffd4 commit 70ef8e2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/tests/series/test_reductions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
import pandas._testing as tm
1010

1111

12+
def test_reductions_series_strings():
13+
# GH#31746
14+
ser = Series(["a", "b"], dtype="string")
15+
assert ser.max() == "b"
16+
assert ser.min() == "a"
17+
18+
1219
@pytest.mark.parametrize("as_period", [True, False])
1320
def test_mode_extension_dtype(as_period):
1421
# GH#41927 preserve dt64tz dtype

0 commit comments

Comments
 (0)