def pd_applyfun_col(df, newcol, ff, use_colname='all/[colname]'):
    """ use all Columns to compute values """
    if use_colname == 'all/[colname]':
        df[newcol] = ff(df.values)
    else:
        df[newcol] = ff(df[use_colname].values)
    return df
