So entfernen Sie die Quasi konstante Spalte in Pandas DataFrame

def drop_constant_column(dataframe):
    """
    Drops constant value columns of pandas dataframe.
    """
    return dataframe.loc[:, (dataframe != dataframe.iloc[0]).any()]
Easy Elk