Screen Link:
https://app.dataquest.io/m/348/guided-project%3A-clean-and-analyze-employee-exit-surveys/1/introduction
Hello @dataquest
Please I need help with the result I’m getting from the guided project on Employee Exit Survey.
My code:
fig, ax = plt.subplots(figsize=(17,8))
ax = sns.heatmap(dete_survey.isnull(), cbar=False)
ax.set_yticks([])
ax.set_title("DETE available and missing data")
plt.show()
When I ran my code, I expected to see missing data on the heatmap shaded in gray, while other data in black.
I double checked the result with the following code: dete_survey.isnull().sum()
It turns out the result is the opposite. All the areas shaded in gray actually contain data, and the areas in blacks have lots of NaN values.
Please what do I need to fix in my code? Thank you for your prompt response.