Rolling return was passing frequency object

instea of frequency.symbol
This commit is contained in:
Gourav Kumar 2022-02-21 08:27:01 +05:30
parent 81856b2c1a
commit 053a93900a

View File

@ -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]