0

I have a 2-D matrix and I want to export it somehow with my python script into a CSV, is there a fast and elegant way for that?

Thanks

marinako
  • 25
  • 1
  • 2
  • 5

1 Answers1

0

If your 2D matrix is a numpy array you can use numpy.savetxt with a delimiter set as ','.

makhlaghi
  • 3,856
  • 6
  • 27
  • 34