def rm_const_cols(dataframe):
    """
    Removes dataframe columns with constant values or null any value
    :param dataframe: A pandas dataframe
    :return: A pandas dataframe
    """
    dataframe = dataframe.dropna(axis=1)  # dropping columns with any null value for PCA
    return dataframe.loc[:, (dataframe != dataframe.iloc[0]).any()]