enum_df = df.select_dtypes(include=['object'])
num_df = df.select_dtypes(exclude=['object'])
num_df = num_df.loc[:, (num_df.var() == 0.0)]
df = pd.concat([num_df, enum_df], axis=1)
panda dataframe remove constant column