Python-Machine-Learning
Python-Machine-Learning copied to clipboard
03_preprocessing.ipynb code for dropping nan values
Version issues: Some participants have issues with: data = data.dropna(subset='sex')
Fixed by using: data = data.dropna(subset=['sex'])
The same line of codes used for "Combine it all together" section in the same notebook (03_preprocessing)