Hi Guys,
I am trying to filter my dataset using constant variable method, but it shows me the bellow error.
ValueError Traceback (most recent call last)
<ipython-input-10-d28793719248> in <module>
----> 1 model.fit(dataset)
~\anaconda3\lib\site-packages\sklearn\feature_selection\_variance_threshold.py in fit(self, X, y)
67 """
68 X = check_array(X, ('csr', 'csc'), dtype=np.float64,
---> 69 force_all_finite='allow-nan')
70
71 if hasattr(X, "toarray"): # sparse matrix
~\anaconda3\lib\site-packages\sklearn\utils\validation.py in check_array(array, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, warn_on_dtype, estimator)
529 array = array.astype(dtype, casting="unsafe", copy=False)
530 else:
--> 531 array = np.asarray(array, order=order, dtype=dtype)
532 except ComplexWarning:
533 raise ValueError("Complex data not supported\n"
~\anaconda3\lib\site-packages\numpy\core\_asarray.py in asarray(a, dtype, order)
83
84 """
---> 85 return array(a, dtype, copy=False, order=order)
86
87
ValueError: could not convert string to float: '208 Michael Ferry Apt. 674\nLaurabury, NE 37010-5101'
How can I solve this error?