0

I have a multi dimensional numpy arrray. I want to dump that array to a csv file. Please suggest methods of how it can be done. Thanks in advance.

Bidisha Das
  • 177
  • 2
  • 11
  • 2
    Possible duplicate of [How to write a multidimensional array to a text file?](https://stackoverflow.com/questions/3685265/how-to-write-a-multidimensional-array-to-a-text-file) – Joe Aug 23 '18 at 06:31
  • A proper csv is table like, so can easily show a 2d array. 3d or higher doesn't fit the format – hpaulj Aug 23 '18 at 08:27

1 Answers1

0

You can use numpy.savetxt and define delimiter=','.

Ramon Crehuet
  • 3,679
  • 1
  • 22
  • 37