I am using the following to save the numpy array x with a header:
np.savetxt("foo.csv", x, delimiter=",", header="ID,AMOUNT", fmt="%i")
However, if I open "foo.cv", the file looks like:
# ID,AMOUNT
21,100
52,120
63,29
:
There is an extra # character in the beginning of the header. Why is that and is there a way to get rid of it?