MCPcopy
hub / github.com/pandas-dev/pandas / test_lower_upper

Function test_lower_upper

pandas/tests/strings/test_case_justify.py:30–38  ·  view source on GitHub ↗
(any_string_dtype)

Source from the content-addressed store, hash-verified

28
29
30def test_lower_upper(any_string_dtype):
31 s = Series(["om", np.nan, "nom", "nom"], dtype=any_string_dtype)
32
33 result = s.str.upper()
34 expected = Series(["OM", np.nan, "NOM", "NOM"], dtype=any_string_dtype)
35 tm.assert_series_equal(result, expected)
36
37 result = result.str.lower()
38 tm.assert_series_equal(result, s)
39
40
41def test_lower_upper_mixed_object():

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
upperMethod · 0.80
lowerMethod · 0.80

Tested by

no test coverage detected