From the course: Data Visualization with Matplotlib and Seaborn

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Challenge: Dual axis line charts

Challenge: Dual axis line charts

- [Instructor] All right, we have another email in from Ian intern. Sadly this will be our last email from Ian. The subject line is another response to the subject final charts for clients. He writes us, Hey again, great work on those charts. Final request, we want to compare room nights booked versus cancellations over time. We might need to dual access chart to effectively do this. I'm totally checked out. Well, that's good to know. So can you do this? You'll be put into contact with the client soon. Thanks. And if you take a look at the chart on the right, we can see we're plotting room nights, which is in blue and is plotted on the left axis. And we're plotting bookings canceled, which is an orange, which is on the right axis. So let's go ahead and take a look at our section two assignments notebook really quick. All right, and so we want to plot the sum of nights booked and the sum of cancellations on a quarterly basis. So I've given you some intermediate code. So this is going…

Contents