From a0499ca157f1ca135eb3ed5d257e4f4eaa12b50d Mon Sep 17 00:00:00 2001 From: Gourav Kumar Date: Sun, 12 Jun 2022 21:35:55 +0530 Subject: [PATCH] bug fix in frequency parsing --- pyfacts/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfacts/core.py b/pyfacts/core.py index 0d881fe..63461f4 100644 --- a/pyfacts/core.py +++ b/pyfacts/core.py @@ -309,7 +309,7 @@ def _validate_frequency( provided_frequency = getattr(AllFrequencies, provided_frequency) start_date = data[0][0] end_date = data[-1][0] - overall_gap = (end_date - start_date).days + overall_gap = (end_date - start_date).days + 1 num_data_points = len(data) # days_per_data = num_data_points / overall_gap