Fix indentation

This commit is contained in:
Matthias 2022-04-23 10:51:24 +02:00
parent ba305e93ed
commit 84f5a4d5bc

View File

@ -60,10 +60,10 @@ def merge_informative_pair(dataframe: pd.DataFrame, informative: pd.DataFrame,
# https://pandas.pydata.org/docs/user_guide/merging.html#timeseries-friendly-merging
# merge_ordered - ffill method is 2.5x faster than seperate ffill()
dataframe = pd.merge_ordered(dataframe, informative, fill_method="ffill", left_on='date',
right_on=date_merge, how='left')
right_on=date_merge, how='left')
else:
dataframe = pd.merge(dataframe, informative, left_on='date',
right_on=date_merge, how='left')
right_on=date_merge, how='left')
dataframe = dataframe.drop(date_merge, axis=1)
# if ffill: