Search⌘ K
AI Features

Solution: Plotting the Data

Explore plotting techniques in Python by recreating bar plots for stock highs and lows during a recession, using line plots to track stock prices over time, and creating subplots to compare oil prices and stock changes between 2008 and 2009.

Task 1: Creating a bar plot

Recreate the bar plots below for the max and min stock prices that took the biggest hit during the recession. Use the same dataset and codes from the previous practice exercise.

Hint: Use subplots() and pass ncols = 2.

You can use the max_stock and min_stock values from the previous exercise. Remember that you need to ...