Jul-15-2020, 07:52 PM
The extra column is the pandas indexes I mentioned. You can turn it off with the index attribute of the df.to_string() method:
df.to_string(outfile, index=False)
"So, brave knights, if you do doubt your courage or your strength, come no further, for death awaits you all with nasty, big, pointy teeth!" - Tim the Enchanter