I was trying to handle constant and quasi-constant columns from my dataframe so I was using VarianceThreshold to drop columns with 0 varience. I did this:
constant_filter.fit(train_features)
ValueError: could not convert string to float: 'RL'
It gave this error and I don't have any string values in my dataframe I have some object types. Is that causing error. This is my df.info():
df.info()
1.4m articles
1.4m replys
5 comments
56.9k users