Python sklearn & graphs


From a recent project in Mosh’s latest lecture from the Python Mastery course, I tried to make a graph myself. I have 3 columns and a bunch of rows which also contain floats. The columns display: Age; Gender; and Food_choice. The problem occurs when I implemented floats for the age column. When I kept the age as a integer, there was no problem making a .dot file out of Jupiter’s notebook. I will upload a picture containing the error.

My question: Does anyone know how to use floats in this program?