def get_direction_per_spike(df, cells, value_query, threshold=1):
    """
    For a list of cells in a dataframe, return a list of values that are
    associated with spiking activity.
    :param df: Dataframe containing the spiking activity, and the values
    to be queried
    :param cells: List of cells (dataframe column headings)
    :param value_query: Dataframe column heading containing values
    :param threshold: Spiking threshold to be reached. Default: 1 spike per bin
    :return: List of values, and their weights (if there are >1 spike per
    temporal bin)
    """
    value_list = []
    weights = []
    for cell in cells:
        values = df[value_query][(df[cell] >= threshold)]
        weights_cell = df[cell][(df[cell] >= threshold)]
        value_list.append(values)
        weights.append(weights_cell)
    return value_list, weights