diff --git a/freqtrade/data/converter.py b/freqtrade/data/converter.py index 03393905d..e778c99d7 100644 --- a/freqtrade/data/converter.py +++ b/freqtrade/data/converter.py @@ -195,14 +195,14 @@ def trim_dataframes(preprocessed: Dict[str, DataFrame], timerange, """ processed: Dict[str, DataFrame] = {} for pair, df in preprocessed.items(): - trimed_df = trim_dataframe(df, timerange, startup_candles=startup_candles) - if not trimed_df.empty: - # start_mem = trimed_df.memory_usage().sum() / 1024**2 + trimmed_df = trim_dataframe(df, timerange, startup_candles=startup_candles) + if not trimmed_df.empty: + # start_mem = trimmed_df.memory_usage().sum() / 1024**2 # logger.info(f"Memory usage of df for {pair} before reduced is {start_mem:.2f} MB") - trimed_df = reduce_mem_usage(pair, trimed_df) - # end_mem = trimed_df.memory_usage().sum() / 1024**2 + trimmed_df = reduce_mem_usage(pair, trimmed_df) + # end_mem = trimmed_df.memory_usage().sum() / 1024**2 # logger.info(f"Memory usage of df for {pair} after reduced is {end_mem:.2f} MB") - processed[pair] = trimed_df + processed[pair] = trimmed_df else: logger.warning(f'{pair} has no data left after adjusting for startup candles, ' f'skipping.')