def replace_with_median(col, value_to_replace):
    
    """Replaces a dummy number with the median of the other numbers in the column.
    
    Parameters
    ----------
    
    col : Pandas DataFrame column with numeric values
    
    value_to_replace : Dummy value that needs to be replaced
    
    Returns
    -------
    
    DataFrame column with dummy values now replaced with median."""
    
    real_values = col.loc[(~col.isna()) & (col != value_to_replace)]

    true_median = real_values.median()

    return col.replace(value_to_replace, true_median)