Hi I'm trying to save different numpy arrays to csv files using the following command in a looped script
df = pd.DataFrame(arr)
- it fails here
df.astype(str).to_excel
(outputFile)
It works fine for an array of the following shape and dtype
of (8L,) & [('add','
however when I try it with an array with the following shape and dtype
of (13L, 4L) & [('add', '
I get the following message
*** ValueError: If using all scalar values, you must pass an index
Any help would be gratefully received.
So the shape of the first csv file id 2 columns by 8 rows and ideally I'd like the 2nd csv to have a format of 8 columns by 13 rows
FN