Currently, extract_date_range() assumes that the data is grouped at a weekly level, but this is not necessarily the case.
It would be good if it computes whether the date is grouped at a daily, weekly, or monthly level, perhaps by taking into account the differences of the dates.
The "text" return could then be something like:
Daily data from X to X
Weekly data from X to X
When introducing this feature, it would be good to test whether this has an impact on the performance of functions which use extract_date_range().
Currently,
extract_date_range()assumes that the data is grouped at a weekly level, but this is not necessarily the case.It would be good if it computes whether the date is grouped at a daily, weekly, or monthly level, perhaps by taking into account the differences of the dates.
The
"text"return could then be something like:Daily data from X to XWeekly data from X to XWhen introducing this feature, it would be good to test whether this has an impact on the performance of functions which use
extract_date_range().