I am creating list for each data items, I have following data structure and at the end of iteration have have 6 lists that contains data points. Each list has same length, I want to generate each list as a column of csv file
Example:
columnOfList1, columnOfList2...
this is my code that generate multiple list of data: what I can't figureout is to generate csv file.
for (fn1, lst1), (fn2, lst2) in product(dict1.iteritems(), dict2.iteritems()):
for vector1, vector2 in zip(lst1, lst2):
NameError: name 'product' is not defined.(I assume you're talking aboutitertools.product, but would you please put it in your question?