def extract_data(df, filter_missing=True):
    """Extract data from evalmetrics output.

    An evalmetrics output contains the data as well as metadata fields
    associated with the data. This function takes a df containing evalmetrics
    output fields as columns, applies cleaning and conforming, and extracts
    the data series containing just the data field.
    """
    if filter_missing:
        df = df[df["missing"] != 100]
    return df["data"]