def columns_instantaneous_df(weighted, keys=[]):
    """Obtain the columns of dataframe according with the keys and the weighting."""
    cols = ['ts']
    if weighted:
        cols.append('w')
    return keys + cols
