python using anaconda jupyter notebook #2444
Unanswered
fernandotoscano
asked this question in
Perguntas e Respostas
Replies: 1 comment
-
what is this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I´m using anaconda's jupyter notebook and I got an error like this:
/usr/local/lib/python3.10/dist-packages/pandas/core/series.py in array(self, dtype)
891 array(['1999-12-31T23:00:00.000000000', ...],
892 dtype='datetime64[ns]')"""
--> 893 return np.asarray(self._values, dtype)
894
895 # ----------------------------------------------------------------------
ValueError: could not convert string to float: 'M'
I´m trying to learn in a Project named: Breast Cancer Detection Using Python & Machine Learning (youtube)
And when I try to run the code :
Visualize the count
sns.countplot(df['diagnosis'], label= 'count')
I received the error message above.
In the column 'diagnoses' I only have "M" for malignant and "B" benign.
Can some one help me please.
Thank You
Beta Was this translation helpful? Give feedback.
All reactions