Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

export data and labels in cvs file

Hi experts!

I have the Numpy arrays A=[a1,a2,...] and B=[b1,b2,...]. I know that I can export these arrays doing:

np.savetxt('array A.csv', A, delimiter=',') 
np.savetxt('array B.csv', B, delimiter=',')

I wanna export one cvs file that include both arrays + labels, in this way:

A  |  B
--------
a1 | b1
a2 | b2
.  |  . 
.  |  . 
.  |  .

How can I do that?

Waiting for your answers.

Thanks a lot.

Best regards

export data and labels in cvs file

Hi experts!

I have the Numpy arrays A=[a1,a2,...]AAA=[a1,a2,...] and B=[b1,b2,...]BBB=[b1,b2,...]. I know that I can export these arrays doing:

np.savetxt('array A.csv', A, AAA.csv', AAA, delimiter=',') 
np.savetxt('array B.csv', B, BBB.csv', BBB, delimiter=',')

I wanna export one cvs file that include both arrays + labels, in this way:

A AAA | BBB
----------
a1  |  B
--------
a1 | b1
a2  | b2
.   |  . 
.   |  . 
.   |  .

How can I do that?

Waiting for your answers.

Thanks a lot.

Best regards

export data and labels in cvs file

Hi experts!

I have the Numpy arrays AAA=[a1,a2,...] and BBB=[b1,b2,...]. I know that I can export these arrays doing:

np.savetxt('array AAA.csv', AAA, delimiter=',') 
np.savetxt('array BBB.csv', BBB, delimiter=',')

I wanna export one cvs csv file that include both arrays + labels, in this way:

AAA | BBB
----------
a1  | b1
a2  | b2
.   |  . 
.   |  . 
.   |  .

How can I do that?

Waiting for your answers.

Thanks a lot.

Best regards