How to split dataset by group result

ray version == 2.3.1

like i have a data:
ds = ray.data.from_items([
{“group”: 1, “value”: 1},
{“group”: 1, “value”: 2},
{“group”: 2, “value”: 3},
{“group”: 2, “value”: 4}])

i want get :
dataset1 1:[1,2]

dataset2 2:[3,4]