I have a array of this type:
xyz = [['nameserver','panel'], ['nameserver','panel']]
How can I save this to an abc.txt file in this format:
nameserver panel
nameserver panel
I tried this using, on iterating over each row:
np.savetxt("some_i.txt",xyz[i],delimiter=',');
It's showing this error:
TypeError: Mismatch between array dtype ('<U11') and format specifier
('%.18e')
nameservers, but saved file --nameserver(nosat the end)fmt='%.18e'for numpy's savetxt method, which is for savinf floating point numbers not strings. Hence the error.