def replace_ref_nan(row):
    """Function to replace nan info values of some references coming from references without PubMed id
    with their reference id."""
    if isinstance(row["combined"], float):
        return row["reference_id"]
    else:
        return row["combined"]