Browse Source

fix:stl python

zqbao 4 months ago
parent
commit
7fb7b53907
1 changed files with 1 additions and 1 deletions
  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