If I have an already indexed Dask dataframe with
>>> A.divisions
(None, None)
>>> A.npartitions
1
and I want to set the divisions, so far I'm doing
A.reset_index().set_index("index", divisions=sorted(divisions))
because A.repartition(divisions=sorted(divisions))
complains "left side of old and new divisions are different". Is there a better way?