I have a csv file with contents like below
source,address,table,tableName,sym,symSet
source_one,addr1:port1:id1:pass1,table_one,tableName1,syms_one,SYM1 SYM2 SYM3
source_two,addr2:port2:id2:pass2,table_two,tableName2,syms_two,SYM21 SYM22 SYM23
My code to load a csv into a table is as below
table:("******";enlist ",") 0: `sourceFileName.csv
I want to create a dictionary out of contents of 'table' in the below format
source_one|addr1:port1:id1:pass1
table_one|tableName1
syms_one|SYM1 SYM2 SYM3
source_two|addr2:port2:id2:pass2
table_two|tableName2
syms_two|SYM21 SYM22 SYM23
How do I achieve this?
Thanks!