9 Dec 2021 by Richard MacCutchan
If you copy the dataset into a simple list you can do it with the following: products = [ [ 1, 200, 'X' ], [ 2, 300, 'A' ], [ 2, 400, 'A' ], [ 2, 200, 'A' ], [ 3, 500, 'A' ], [ 3, 400, 'A' ], [ 3, 300, 'B' ], ] for i...