in src/smjsindustry/finance/utils.py [0:0]
def _get_freq_label_by_day(date_value: str) -> str:
"""Gets frequency label for the date value which is aggregated by day.
Args:
date_value (str): The date value.
Returns:
str: The date value aggregated by day.
"""
if not bool(re.match(r"^\d{4}-\d{1,2}-\d{1,2}$", date_value)):
raise ValueError("Date needs to be in yyyy-mm-dd format when freq is D")
return date_value