def get_locs(layout, value):
    """Get (index, column) tuples for location of value in layout df."""
    locs_list = []
    locs = layout.isin([value])

    series = locs.any()
    columns = list(series[series].index)
   
    for col in columns:
        rows = list(locs[col][locs[col]].index)
  
        for row in rows:
            locs_list.append((row, col))

    return locs_list