bug fix in frequency parsing

This commit is contained in:
Gourav Kumar 2022-06-12 21:35:55 +05:30
parent 33c56d8f6c
commit a0499ca157

View File

@ -309,7 +309,7 @@ def _validate_frequency(
provided_frequency = getattr(AllFrequencies, provided_frequency) provided_frequency = getattr(AllFrequencies, provided_frequency)
start_date = data[0][0] start_date = data[0][0]
end_date = data[-1][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) num_data_points = len(data)
# days_per_data = num_data_points / overall_gap # days_per_data = num_data_points / overall_gap