i have a np.array which i want to save in a specific excel cell (for example in B14). The input in B14 should look like this: [[ 0, 540, 1920, 540]]. But i got this ERROR:
TypeError: only size-1 arrays can be converted to Python scalars. Unsupported type <class 'numpy.ndarray'> in write()
import xlsxwriter
self.outputs['redlines']=np.array([[0, HEIGHT/2, WIDTH, HEIGHT/2]])
outWorkbook = xlsxwriter.Workbook('parameter.xlsx')
outSheet=outWorkbook.add_worksheet('Tabelle1')
outSheet.write('A13','dts:')
outSheet.write('A14','outputs Redlines:')
outSheet.write('B14', self.dts)
outSheet.write('B14', self.outputs['redlines'])
outWorkbook.close()
Thank You all!