📅  最后修改于: 2022-03-11 14:45:55.995000             🧑  作者: Mango
def drop_constant_column(dataframe):
"""
Drops constant value columns of pandas dataframe.
"""
return dataframe.loc[:, (dataframe != dataframe.iloc[0]).any()]