I am new to koalas. I have been told to implement koalas instead of pandas in my work.
Earlier when we have dataframe we convert that to pandas and use that for np.where
with condition check inside. Example in pandas we used to do like
np.where(condition,action1,action2)
When I try to use koalas for the same we get error below
PandasNotImplementedError: The method
pd.Series.__iter__()
is not implemented. If you want to collect your data as an NumPy array, use 'to_numpy()' instead.
I even tried ks.series
and ks.dataframe
but the error didn't go.
Is there any method/function in koalas to accept 3 params (condition,action1,action2) like we use np.where
in pandas. It will be much helpful if anyone explains through example too.