I’m at the very start of my journey and am a complete newbie. I’m doing the Data Science Foundations and when I got to the Data Types and Quality section, I saw direction by forum comments that I should do the Handling Missing Data course before proceeding. So I went to do that.
But the very first Listwise Deletion exercise on just wouldn’t work. The example says to use
And it doesn’t work.
The next example, for Pairwise deletion says to use
and it also doesn’t work
It kept saying “NameError: name ‘data’ is not defined”
I was getting frustrated as I know NO programming yet and this is all supposed to be beginner friendly. But I had a look online…
I found using “df.dropna” instead of “data.dropna” in both examples makes it work. (“df” = dataframe)
As there doesn’t seem to be a way to flag or report it on that page, I thought I’d post this fix here in case anyone else is facing the same issue!