python numpy.savetxt header has extra character #
The header and footer text are added as comments. If you want to change the comment identifier, pass the comments
option (the default is #
):
np.savetxt("foo.csv", x, delimiter=",", header="ID,AMOUNT",
fmt="%i", comments='')
As documented here.