Skip to content

Commit

Permalink
Add object
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Jan 8, 2024
1 parent 6fddef9 commit 9453f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/strings/test_split_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def test_partition_index(method, exp):
values = Index(["a_b_c", "c_d_e", "f_g_h", np.nan, None])

result = getattr(values.str, method)("_", expand=False)
exp = Index(np.array(exp), dtype=object)
exp = Index(np.array(exp, dtype=object), dtype=object)
tm.assert_index_equal(result, exp)
assert result.nlevels == 1

Expand Down

0 comments on commit 9453f65

Please sign in to comment.