cola 2 years ago
parent
commit
b140cc3fae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      handlers/HandlerBase.py

+ 1 - 1
handlers/HandlerBase.py

@@ -58,7 +58,7 @@ class BaseHandler(RequestHandler, DateUtils):
         # with open(f'./{pitcher}_{start}_{end}.csv','w',newline='') as f:
         #     f.write(df)
         with ExcelWriter("xxxx.xlsx") as ew:
-            pd.read_csv(df).to_excel(ew,sheet_name="1",index=False)
+            df.to_excel(ew,sheet_name="1",index=False)
         self.write(df)