Rolling return was passing frequency object
instea of frequency.symbol
This commit is contained in:
parent
81856b2c1a
commit
053a93900a
@ -200,7 +200,7 @@ class TimeSeries(TimeSeriesCore):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise ValueError(f"Invalid argument for frequency {frequency}")
|
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:
|
if frequency == AllFrequencies.D:
|
||||||
dates = [i for i in dates if i in self.time_series]
|
dates = [i for i in dates if i in self.time_series]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user