Skip to content

Commit cc79f34

Browse files
fix get_dummies test
1 parent db65e32 commit cc79f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/strings/test_get_dummies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ def test_get_dummies_with_str_dtype(any_string_dtype):
114114
@td.skip_if_no("pyarrow")
115115
def test_get_dummies_with_pa_str_dtype(any_string_dtype):
116116
s = Series(["a|b", "a|c", np.nan], dtype=any_string_dtype)
117-
result = s.str.get_dummies("|", dtype="str[pyarrow]")
117+
result = s.str.get_dummies("|", dtype="string[pyarrow]")
118118
expected = DataFrame(
119119
[
120120
["true", "true", "false"],
121121
["true", "false", "true"],
122122
["false", "false", "false"],
123123
],
124124
columns=list("abc"),
125-
dtype="str[pyarrow]",
125+
dtype="string[pyarrow]",
126126
)
127127
tm.assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)