Olá tentei realizar a execução do código e houve o seguinte erro.
from sklearn.preprocessing import Normalizer values = Normalizer().fit_transform(dataframe.values) print(values)
TypeError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_9752\1765981534.py in ----> 1 values = Normalizer().fit_transform(dataframe.values) 2 print(values)
~\anaconda3\lib\site-packages\sklearn\base.py in fit_transform(self, X, y, *fit_params) 850 if y is None: 851 # fit method of arity 1 (unsupervised transformation) --> 852 return self.fit(X, *fit_params).transform(X) 853 else: 854 # fit method of arity 2 (supervised transformation)
~\anaconda3\lib\site-packages\sklearn\preprocessing_data.py in fit(self, X, y) 1931 Fitted transformer. 1932 """ -> 1933 self.validatedata(X, accept_sparse="csr") 1934 return self 1935
~\anaconda3\lib\site-packages\sklearn\base.py in validatedata(self, X, y, reset, validate_separately, *check_params) 564 raise ValueError("Validation should be done on X, y or both.") 565 elif not no_val_X and no_val_y: --> 566 X = check_array(X, *check_params) 567 out = X 568 elif no_val_X and not no_val_y:
~\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, estimator) 744 array = array.astype(dtype, casting="unsafe", copy=False) 745 else: --> 746 array = np.asarray(array, order=order, dtype=dtype) 747 except ComplexWarning as complex_warning: 748 raise ValueError(
TypeError: float() argument must be a string or a number, not 'method'
Já conferi o dataframe e todos estão com int64()
![Insira aqui a descrição dessa imagem para ajudar na acessibilidade](https://cdn1.gnarususercontent.com.br/1/1367467/44c6c020-eeda-4b83-86ab-29e78789458c.png)
Obrigado