Dec-17-2020, 09:40 PM
(This post was last modified: Dec-17-2020, 09:43 PM by CatorCanulis.)
Hi everyone,
I have a excel table like this:
CODE | MATRIX | SAMPLING | FREQUENCY | PARAM
XX123 | OG | spot | 14 | 99
XX123 | OG | spot | 14 | 50
XX123 | OG | spot | 14 | 1620
AB006 | OG | mix | 28 | 3
AB006 | OG | mix | 28 | 4005
Can I somehow normalize this data to a list of dictionaries like this?:
Thanks in advance
Markus
I have a excel table like this:
CODE | MATRIX | SAMPLING | FREQUENCY | PARAM
XX123 | OG | spot | 14 | 99
XX123 | OG | spot | 14 | 50
XX123 | OG | spot | 14 | 1620
AB006 | OG | mix | 28 | 3
AB006 | OG | mix | 28 | 4005
Can I somehow normalize this data to a list of dictionaries like this?:
[[ {'CODE': 'XX123', 'MATRIX': 'OG', 'SAMPLING':'spot', 'FREQUENCY':14, 'PARAM':[99, 50, 1620]}, {'CODE': 'AB006', 'MATRIX': 'OG', 'SAMPLING':'mix', 'FREQUENCY':28, 'PARAM':[3, 4005]} ]I tried googling this problem but didn't come across an exact match.
Thanks in advance
Markus