Let’s say I want to groupby A and B and calc the sum of Sales? How should I go about it?
import pandas as pd
import ray
ray.init()
rdf = ray.data.from_pandas(pd.DataFrame({'A':[1,2,3],'B':[1,1,4],'Sales':[20,30,40]})
I did try doing rdf.groupby([‘A’,‘B’]) but it gives me an error stating the key column must not be a list.