From 053a93900a2aaa8ae8a0288ba18b2cd24ef1a340 Mon Sep 17 00:00:00 2001 From: gouravkr Date: Mon, 21 Feb 2022 08:27:01 +0530 Subject: [PATCH] Rolling return was passing frequency object instea of frequency.symbol --- fincal/fincal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fincal/fincal.py b/fincal/fincal.py index 1e3fb34..fb227c9 100644 --- a/fincal/fincal.py +++ b/fincal/fincal.py @@ -200,7 +200,7 @@ class TimeSeries(TimeSeriesCore): except AttributeError: raise ValueError(f"Invalid argument for frequency {frequency}") - dates = create_date_series(from_date, to_date, frequency) + dates = create_date_series(from_date, to_date, frequency.symbol) if frequency == AllFrequencies.D: dates = [i for i in dates if i in self.time_series]