Commit 723fa04a authored by 吕先亚's avatar 吕先亚

Ylable不做填充

parent b3dfc50e
......@@ -147,7 +147,10 @@ class TrainingDataBuilder(ABC):
DataAll['EPS_TTM_YOY'] = (DataAll['JIFU_SPX_OPEPS_CURRQ_TTM'] / DataAll['JIFU_SPX_OPEPS_CURRQ_TTM'].shift(
252) - 1.0)
DataAll.dropna(subset=[DataAll.columns[1]], inplace=True)
DataAll.ffill(inplace=True)
for col in DataAll.columns:
if col not in ['futureR', 'yLabel']:
DataAll[col].ffill(inplace=True)
if (self._toForecast):
# 处理CPI_YOY:美国城镇消费物价指数同比未经季 CPURNSA:美国消费者物价指数未经季调
DataAllCopy = DataAll.copy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment