This commit is contained in:
dsyoon
2024-01-25 09:20:45 +09:00
parent 86280c0ea5
commit 04b62094b3

View File

@@ -733,6 +733,7 @@ class AnalyzerSqlite:
decomposition_results = seasonal_decompose(close_temp, model='multiplicative', period=size)
trend = decomposition_results.trend[:-pos]
trend_df = pd.DataFrame(trend).fillna(close_list[0])
trend_list = trend_df.values.tolist()
sorted_stock = sorted(stock["PRICE"], key=lambda x: x['ymd'], reverse=True)
for price in sorted_stock: