Load CSV into pandas and convert to JSON hierarchy based on column values
I have a CSV with thousands of hundreds of thousands of rows but basically looks like this personal_id location_type location_number 1 'company' 123 2 'branch 321 1 'branch 456 1 'branch 567 The goal is to group everything by personal_id…