How to pass 2 list values as dataset in power table?

Hi, i have 2 list

a = [one,two,three]
b= [20,-90,30]
i want this in power tabel like this (each list in separate column)

one 20
two -90
three 30

i tired like this

for row in a:
	
	
	for rows in b:
			MyDataset = system.dataset.addRow(MyDataset,[row,rows])

event.source.parent.getComponent('Power Table 1').data = MyDataset

but not getting correct output

Use a zip function to iterate over your two lists in parallel.

1 Like