def _replace_missing_values_column(values, mv):
    """
    Replace missing values in the values list where applicable

    :param list values: Metadata (column values)
    :return list values: Metadata (column values)
    """
    for idx, v in enumerate(values):
        try:
            if v in EMPTY or v == mv:
                values[idx] = "nan"
            elif math.isnan(float(v)):
                values[idx] = "nan"
            else:
                values[idx] = v
        except (TypeError, ValueError):
            values[idx] = v

    return values
Replace missing values in the values list where applicable

    :param list values: Metadata (column values)
    :return list values: Metadata (column values)