efficient feature reduction in a pandas data frame,df['Features'] = df['Features'].apply(frozenset)