I'm trying to export Two float arrays into a CSV file using IronPython, here's my code
import System
from System import Array
iData = Array.CreateInstance(System.Single, 1024)
qData = Array.CreateInstance(System.Single, 1024)
import csv
with open(r'c:\test.csv', 'w') as fp:
writer = csv.writer(fp, delimiter=',')
for i in range(0, 1024):
val = repr(iData[i]) + repr(qData[i])
writer.writerow(val)
print("done")
the above code works fine, but when I open test.csv file I see the following
[EXCEL]

[NotePad++]

but what I want to achieve is this (iData[i],qData[i]),

any suggestions please?
test.csv.test.csvin a plain text editor like Notepad++ and add the content (some lines are enough) to your question.