Get orders of 1 user in a same cell in a row

I'm trying export data to a csv file using Django or JavaScript and I want the output like this.

NAME Orders
Robert Hammer
-------- --------
George Screws

but the output in csv shows the other Orders of Robert are in the same line column of NAME instead of Orders

Back to Top