浏览代码

fix:stl python

zqbao 4 月之前
父节点
当前提交
7fb7b53907
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/data/stl/stl.go

+ 1 - 1
services/data/stl/stl.go

@@ -436,7 +436,7 @@ warnings.filterwarnings('ignore')
 file_path = r"%s"
 df = pd.read_excel(file_path, parse_dates=['日期'], engine='openpyxl')
 df.set_index('日期', inplace=True)
-
+df = df[df.index.notna()]
 
 period = %d
 seasonal = %d