我有以下数据框:
Date Year Month Day Security Trade Value
0 2011-01-10 00:00:00 2011 1 10 AAPL Buy 1500
1 2011-01-13 00:00:00 2011 1 13 AAPL Sell 1500
当我将其写入 csv 时,会在文件开头创建一个额外的列:
,Date,Year,Month,Day,Security,Trade,Value
0,2011-01-10 00:00:00,2011,1,10,AAPL,Buy,1500
1,2011-01-13 00:00:00,2011,1,13,AAPL,Sell,1500
我该如何解决这个问题?