From 4b38c8b11d82bcf89a64716c039e26dd9a8b414c Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Wed, 25 Jul 2018 17:04:25 +0300 Subject: [PATCH] use pandas own min and max for column sorting --- freqtrade/optimize/backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 7bdc3d93a..78cbe6d33 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -77,7 +77,7 @@ class Backtesting(object): :return: tuple containing min_date, max_date """ timeframe = [ - (arrow.get(min(frame.date)), arrow.get(max(frame.date))) + (arrow.get(frame['date'].min()), arrow.get(frame['date'].max())) for frame in data.values() ] return min(timeframe, key=operator.itemgetter(0))[0], \