From 2a8f5b40416f430d5d7ea5503652fc6a9698a256 Mon Sep 17 00:00:00 2001 From: Gourav Kumar Date: Sun, 1 May 2022 13:07:19 +0530 Subject: [PATCH] limit = None in ffill was causing failure --- fincal/fincal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fincal/fincal.py b/fincal/fincal.py index 6a4986d..7524bbb 100644 --- a/fincal/fincal.py +++ b/fincal/fincal.py @@ -145,7 +145,7 @@ class TimeSeries(TimeSeriesCore): res_string: str = "First date: {}\nLast date: {}\nNumber of rows: {}" return res_string.format(self.start_date, self.end_date, total_dates) - def ffill(self, inplace: bool = False, limit: int = None, skip_weekends: bool = False) -> TimeSeries | None: + def ffill(self, inplace: bool = False, limit: int = 1000, skip_weekends: bool = False) -> TimeSeries | None: """Forward fill missing dates in the time series Parameters @@ -188,7 +188,7 @@ class TimeSeries(TimeSeriesCore): return self.__class__(new_ts, frequency=self.frequency.symbol) - def bfill(self, inplace: bool = False, limit: int = None, skip_weekends: bool = False) -> TimeSeries | None: + def bfill(self, inplace: bool = False, limit: int = 1000, skip_weekends: bool = False) -> TimeSeries | None: """Backward fill missing dates in the time series Parameters