0
how to add a ndarray to a text file ??
adding an array to a txt file.any method??
6 ответов
+ 2
ok, try to convert your array to string: use the str(yourndarray) method.
if that doesn’t work post the relevant code from your project and let me see what youre trying to do exactly.
+ 1
Hi Aju
i don’t know what you mean exactly. From what i understand, take a look at the loadtext function from numpy:
https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.loadtxt.html
+ 1
0
hi Umair Salman .. i just need to save my array to a text file
0
it is not working for arra. it shows an error like only string is posssible to write.
0
ok thanku