Grouping some array into one , but keep the different data

Sorry if this questions looks a basic one, but just this got me overnight

How to transform this :

[
    [
        'id' => 2,
        'role_id' => 2,
        'name' => 'PABLO',
        'sections' => 'FINANCE',
        'department' => 'FATP',
     ],
    [
       'id' => 2,
       'role_id' => 2,
       'name' => 'PABLO',
       'sections' => 'ACCOUNTING',
       'department' => 'FATP',
    ]
]

to This :

[
    [
        'id' => 2,
        'role_id' => 2,
        'name' => 'PABLO',
        'sections' => ['FINANCE','ACCOUNTING']
        'department' => 'FATP',
    ],
]