FAQ: Why Data Science? - Visualizing Data with Matplotlib and Seaborn

This community-built FAQ covers the “Visualizing Data with Matplotlib and Seaborn” exercise from the lesson “Why Data Science?”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Data Science

FAQs on the exercise Visualizing Data with Matplotlib and Seaborn

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

1 Like

plt.show() does nothing… I tried in Chrome and Firefox, but in neither one does a plot appear although the instruction checkmark goes green as though everything worked.

2 Likes

What does the following code do?
y_upper = [i + (i*0.15) for i in viewers_hour]

2 Likes

I think there’s a bug in the browser. The code doesn’t actually do anything so nothing should print out. If you click to the next exercise it should show the plotting code in full.

sets variable i to viewers_hour and does a mathematical function on it. Essentially with the plt.fill_between code draws in the shading around the line