In question 3 of this notebook, the docstring says: return 1 if the string is in ("Master's degree", "Doctoral", "Professional degree"). However, Doctoral is not one of the values in formal education:
>>> pd.unique(df.FormalEducation)
array(['Secondary school',
"Some college/university study without earning a bachelor's degree",
"Bachelor's degree", 'Doctoral degree', "Master's degree",
'Professional degree', 'Primary/elementary school',
'I prefer not to answer', 'I never completed any formal education'],
dtype=object)
This leads to a change in results, which doesn't seem to effect question 5. However, the group which suggests certain methods more changes in some cases
In question 3 of this notebook, the docstring says:
return 1 if the string is in ("Master's degree", "Doctoral", "Professional degree")
. However,Doctoral
is not one of the values in formal education:This leads to a change in results, which doesn't seem to effect question 5. However, the group which suggests certain methods more changes in some cases![issue](https://user-images.githubusercontent.com/5582150/78828849-34718200-799a-11ea-833b-afbb02f8a20d.jpg)