Answers for "how to remove quasi constant column in pandas dataframe"

0

how to remove quasi constant column in pandas dataframe

def drop_constant_column(dataframe):
    """
    Drops constant value columns of pandas dataframe.
    """
    return dataframe.loc[:, (dataframe != dataframe.iloc[0]).any()]
Posted by: Guest on June-24-2021

Code answers related to "how to remove quasi constant column in pandas dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language