Work around for The method `pd.groupby.GroupBy.prod()` is not implemented yet.

Qarol
New Contributor

0

I have a database with two columns: name (str) and probability (float).

I am running this command:

df[['name','probability']].groupby('name').prod()

on a Databricks (runtime 7.3) notebook and df is a koalas dataframe.

The error I get is:

PandasNotImplementedError: The method `pd.groupby.GroupBy.prod()` is not implemented yet.

I wonder if there is a workaround.

stefanhieslas11
New Contributor II

Thanks!

alenka
New Contributor III

The same trouble 😕