I have a DataFrame, for which I want to store values from the keyvalue
column into a variable, based on the value of keyname
.
Example DataFrame:
keyname keyvalue
A 100,200
B 300
C 400
Expected output:
v_A = [100, 200]
v_B = 300
v_C = 400