diff --git a/fincal/fincal.py b/fincal/fincal.py index d874210..03564c9 100644 --- a/fincal/fincal.py +++ b/fincal/fincal.py @@ -196,7 +196,7 @@ class TimeSeriesCore: def tail(self, n: int = 6): keys = list(self.time_series.keys()) keys = keys[-n:] - result = [item for item in self.time_series.items() if item[0] in keys] + result = [(key, self.time_series[key]) for key in keys] return result