def test_set_index_overlap():
    A = pd.DataFrame({'key': [1, 2, 3, 4, 4, 5, 6, 7], 'value': list(('abcd' * 2))})
    a = dd.from_pandas(A, npartitions=2)
    a = a.set_index('key', sorted=True)
    b = a.repartition(divisions=a.divisions)
    assert_eq(a, b)
def test_set_index_overlap():
    A = pd.DataFrame({'key': [1, 2, 3, 4, 4, 5, 6, 7], 'value': list(('abcd' * 2))})
    a = dd.from_pandas(A, npartitions=2)
    a = a.set_index('key', sorted=True)
    b = a.repartition(divisions=a.divisions)
    assert_eq(a, b)