PyDataset to Dictionary

Not in front of anything to test it, but I think that it needs to be a list comprehension:

NewArray = [ 
            dict(zip(pyData.columnNames,list(row))) 
            for i,row in enumerate(pyData)
           ]
2 Likes