def impute_missing(df):

    """ This function detects all missing values and imputes them with the Median of the column each missing value belongs to. """

    df=df[df.columns].fillna(df[df.columns].median())
    return(df)