Given a DataTable, how do I merge similar row values?

Greetings, let’s say I have a datatable that looks as such:
image

In my automation, I want to merge the rows with similar types together. In the above table, I have 3 different “type” values (0,1,2). For every type value, I want to merge those rows into a single one so it looks as such:
image

Basically I want to condense the DataTable based on the Type value. Each similar type is merged into one cell. Does anyone have a good idea on how to achieve this?

we can achieve it by grouping the data and processing the group members