()
| 2060 | |
| 2061 | |
| 2062 | def test_singleton_divisions(): |
| 2063 | df = pd.DataFrame({"x": [1, 1, 1]}, index=[1, 2, 3]) |
| 2064 | ddf = dd.from_pandas(df, npartitions=2) |
| 2065 | ddf2 = ddf.set_index("x") |
| 2066 | |
| 2067 | joined = ddf2.join(ddf2, rsuffix="r") |
| 2068 | assert joined.divisions == (1, 1) |
| 2069 | joined.compute() |
| 2070 | |
| 2071 | |
| 2072 | def test_repartition_repeated_divisions(): |