# Python sklearn & graphs

**URL:** <https://forum.codewithmosh.com/t/python-sklearn-graphs/9355>\
**Category:** Uncategorized\
**Created:** [December 22, 2021, 8:47am UTC](https://forum.codewithmosh.com/t/python-sklearn-graphs/9355 "2021-12-22T08:47:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raimon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/raimon/32/5047_2.png) [@Raimon](https://forum.codewithmosh.com/u/Raimon)\
**Post date:** [December 22, 2021, 8:47am UTC](https://forum.codewithmosh.com/t/python-sklearn-graphs/9355/1 "2021-12-22T08:47:27Z")

</div>

![Foto 22-12-2021 om 09.39](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/2/27e1cdd84c5039a59a75a28c4b27e6efa55c6c2e.jpeg)  
Hello,

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?
