(any_string_dtype)
| 131 | |
| 132 | |
| 133 | def test_rsplit_max_number(any_string_dtype): |
| 134 | # setting max number of splits, make sure it's from reverse |
| 135 | values = Series(["a_b_c", "c_d_e", np.nan, "f_g_h"], dtype=any_string_dtype) |
| 136 | result = values.str.rsplit("_", n=1) |
| 137 | exp = Series([["a_b", "c"], ["c_d", "e"], np.nan, ["f_g", "h"]]) |
| 138 | exp = _convert_na_value(values, exp) |
| 139 | tm.assert_series_equal(result, exp) |
| 140 | |
| 141 | |
| 142 | def test_split_blank_string(any_string_dtype): |
nothing calls this directly
no test coverage detected