GP: Clean And Analyze Employee Exit Surveys

Hi,

I am sharing my Guided project Clean And Analyze Employee Exit Surveys.
Any feedback are welcome!

Click here to view the jupyter notebook file in a new tab

Thanks in advanced!
Regards,
Diana

1 Like

Good work with the cleaning and analysis @dianamartinr85 . Although permit me to make some suggestions
First, to make your codes look neater, you should avoid repeating certain lines (DRY programming), for instance, instead of this:

ax.spines["right"].set_visible(False)    
ax.spines["left"].set_visible(False)
ax.spines["top"].set_visible(False)    
ax.spines["bottom"].set_visible(False)

You could do:

for spine in ["right", "left", "top", "bottom"]:
           ax.spines[spine].set_visible(False)

or:

for key, spine in ax.spines.items():
         spine.set_visible(False)

Also, since you were going to use the above codes (and the ax.set_ylim(), ax.set_yticks(), ax.tick_params()) more than once, you could make your code neater by putting those repeated lines in a function and calling it when needed …

But good work nonetheless … happy learning!

@ ayoaderonmu12 Thanks you very much for your review!! I will take into account your comments.

Regards!
Diana