def METHOD_NAME(CSV_data: list, mapping: dict, kind: str = "production"):
    """
    Gets the values from the CSV data and returns a dictionary with the values by hour and the date
    """
    values_by_hour = {i: {} for i in range(0, 24)}
    date: Union[str, None] = None
    for row in CSV_data:
        if date is None:
            date = row[0] if row[0] != "Fecha" else None
        if row[1] == "Planta":
            continue
        row_production_by_hour = row[2:]
        index = 0
        for value in row_production_by_hour:
            if row[0] == "Fecha":
                continue
            if value != "":
                values_by_hour = format_values(
                    values_by_hour=values_by_hour,
                    mapping=mapping,
                    value=value,
                    kind=kind,
                    id=row[1],
                    index=index,
                )
            index += 1
    return values_by_hour, date