()
| 151 | |
| 152 | |
| 153 | def test_partition(): |
| 154 | df = DataFrame.from_dict({"A": ["A|B", "C|D"]}, npartitions=2)["A"].str.partition( |
| 155 | "|" |
| 156 | ) |
| 157 | result = df[1] |
| 158 | expected = pd.DataFrame.from_dict({"A": ["A|B", "C|D"]})["A"].str.partition("|")[1] |
| 159 | assert_eq(result, expected) |