def test_set_index_errors_with_inplace_kwarg():
    df = pd.DataFrame({'a': [9, 8, 7], 'b': [6, 5, 4], 'c': [3, 2, 1]})
    ddf = dd.from_pandas(df, npartitions=1)
    ddf.set_index('a')
    with pytest.raises(NotImplementedError):
        ddf.set_index('a', inplace=True)
def test_set_index_errors_with_inplace_kwarg():
    df = pd.DataFrame({'a': [9, 8, 7], 'b': [6, 5, 4], 'c': [3, 2, 1]})
    ddf = dd.from_pandas(df, npartitions=1)
    ddf.set_index('a')
    with pytest.raises(NotImplementedError):
        ddf.set_index('a', inplace=True)