I want to pass an KMeans.fit(X)
argument to dataFrameGroupBy
, but I get this error:
ValueError: setting an array element with a sequence.
Would converting the dataFrameGroupBy
into a multidimensional array be the only solution or is there a better solution?