To discover dask, I am currently implementing a K-Means algorithm. To update the means, I want to use a groupBy, but I have to transform my dask.array into a dask.dataframe, then get back to a dask.array :
def update(X, Label):
'''Update the means by using the labels computed by assign'''
Y = X.to_dask_dataframe()
return Y.groupby(Label.to_dask_dataframe()).mean().values
Is there a way to do this without the transformation ?