Move comment to the right place

This commit is contained in:
Matthias 2020-09-04 20:10:43 +02:00
parent cc684c5141
commit 71af64af94

View File

@ -24,7 +24,6 @@ def merge_informative_pair(dataframe: pd.DataFrame, informative: pd.DataFrame,
:param timeframe_inf: Timeframe of the informative pair sample. :param timeframe_inf: Timeframe of the informative pair sample.
:param ffill: Forwardfill missing values - optional but usually required :param ffill: Forwardfill missing values - optional but usually required
""" """
# Rename columns to be unique
minutes_inf = timeframe_to_minutes(timeframe_inf) minutes_inf = timeframe_to_minutes(timeframe_inf)
if timeframe == timeframe_inf: if timeframe == timeframe_inf:
@ -33,6 +32,7 @@ def merge_informative_pair(dataframe: pd.DataFrame, informative: pd.DataFrame,
else: else:
informative['date_merge'] = informative["date"] + pd.to_timedelta(minutes_inf, 'm') informative['date_merge'] = informative["date"] + pd.to_timedelta(minutes_inf, 'm')
# Rename columns to be unique
informative.columns = [f"{col}_{timeframe_inf}" for col in informative.columns] informative.columns = [f"{col}_{timeframe_inf}" for col in informative.columns]
# Combine the 2 dataframes # Combine the 2 dataframes