(time)
return day, hour
Convert a time to and index in an 7x24 array.
    Args:
        time:

    Returns: x,y of the index
Convert a time to and index in an 7x24 array.
    Args:
        time:
Convert a time to and index in an 7x24 array . Args : time :
def convert_time_to_index(time):
    """
    Convert a time to and index in an 7x24 array.
    Args:
        time:

    Returns: x,y of the index

    """
    days = np.arange(0, 7)
    days = np.roll(days, 1)
    for index, item in enumerate(days):
        if item == time.weekday():
            day = index
    hour = time.hour
    return day, hour
def convert_time_to_index ( time ) : days = np . arange ( 0 , 7 ) days = np . roll ( days , 1 ) for index , item in enumerate ( days ) : if item == time . weekday ( ) : day = index hour = time . hour return day , hour