Calendar.apply# Calendar.apply(func)# Passes all the dates in the calendar to the function If all mapped values are datetime.date objects, function returns a new calendar Else it returns a new list. Parameters: func (callable) – callback function Returns: mapped – the mapped values Return type: Calendar | List