def parse_metadata(metadata_field):
    """Cleans the metadata field, in case it's NaN, converts it to str."""
    str_field = str(metadata_field)
    if str_field == "nan":
        return ""
    return str_field