Skip to content

Commit

Permalink
TST: Add tests string series min max (pandas-dev#45505)
Browse files Browse the repository at this point in the history
  • Loading branch information
NumberPiOso authored and yehoshuadimarsky committed Jul 13, 2022
1 parent 5df002e commit a3af036
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pandas/tests/series/test_reductions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
import pandas._testing as tm


@pytest.mark.parametrize("operation, expected", [("min", "a"), ("max", "b")])
def test_reductions_series_strings(operation, expected):
# GH#31746
ser = Series(["a", "b"], dtype="string")
res_operation_serie = getattr(ser, operation)()
assert res_operation_serie == expected


@pytest.mark.parametrize("as_period", [True, False])
def test_mode_extension_dtype(as_period):
# GH#41927 preserve dt64tz dtype
Expand Down

0 comments on commit a3af036

Please sign in to comment.