Using matplotlib and pandas, create two subplots side-by-side showing the effect that after-hours trading has had on Facebook's stock prices: a) The first subplot will contain a line plot of the daily...



Using matplotlib and pandas, create two subplots side-by-side showing the


effect that after-hours trading has had on Facebook's stock prices:


a) The first subplot will contain a line plot of the daily difference between that day's


opening price and the prior day's closing price (be sure to review the Working


with time series data section of Chapter 4, Aggregating Pandas DataFrames, for an


easy way to do this).


b) The second subplot will be a bar plot showing the net effect this had monthly,


using resample().


c) Bonus #1: Color the bars according to whether there are gains in the stock price


(green) or drops in the stock price (red).


d) Bonus #2: Modify the x-axis of the bar plot to show the three-letter abbreviation


for the month.



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here