def METHOD_NAME(args):
    """Read and process dataframe using commandline args"""
    try:
        data = pd.read_csv(args.file, usecols=['name', args.metric], skiprows=8)
    except ValueError:
        msg = 'Could not parse the benchmark data. Did you forget "--benchmark_format=csv"?'
        logging.error(msg)
        exit(1)
    if args.extra:
        try:
            extra = [pd.read_csv(e, usecols=['name', args.metric], skiprows=8) for e in args.extra]
            data = pd.concat([data, *extra], ignore_index=True)
        except ValueError:
            msg = 'Could not parse the extra benchmark data. Did you forget "--benchmark_format=csv"?'
            logging.error(msg)
            exit(1)
    data['label'] = data['name'].apply(lambda x: x.split('/')[0])
    data['input'] = data['name'].apply(parse_input_size)
    data[args.metric] = data[args.metric].apply(TRANSFORMS[args.transform])
    return data