parameters: (time)
return_statement: return day, hour
docstring: Convert a time to and index in an 7x24 array.
      Args:
          time:
  
      Returns: x,y of the index
docstring_summary: Convert a time to and index in an 7x24 array.
      Args:
          time:
docstring_tokens: Convert a time to and index in an 7x24 array . Args : time :
function: 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
function_tokens: 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