It is always easy to manipulate data on numpy array rather than dataframe. If the data you generated in array has to be exported to excel??? How to do this?
Fig1: Array of data
Python offers lot of excel libraries, but xlxswriter is good among them
Import xlsxwriter, Create new workbook, in this case my workbook name is “Expenses01”.
Initiate row and column
Worksheet.write function, writes or copying data cell by cell, column by column and then row by row
Check your directory for the new excel file, open it and check whether its copied or not.