Data Science Jumpstart with 10 Projects Transcripts
Chapter: Project 5: Cleaning Heart Disease Data in Pandas
Lecture: Converting Numeric Values to Catgoricals with the Thal Column

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Next column is the THAL column. This should have three values 3, 6, or 7. Let's do the value counts.
0:10 Okay, and that is messed up. In this case, I'm not going to use our magic remove question function,
0:19 but rather I'm going to try and convert these to strings. Let's see if we can do that.
0:23 Okay, and that looks like that worked. It looks like everything is a string in there,
0:28 so I replaced the string floating point versions to integer floating point versions and then replaced those with the string values. Thanks a lot.
0:38 Thanks.


Talk Python's Mastodon Michael Kennedy's Mastodon