Question: a program that subsets the loads and subsets the stock market data in target.csv. Load the the data from target.csv as target. a new data
a program that subsets the loads and subsets the stock market data in target.csv.
- Load the the data from target.csv as target.
- a new data frame, tgt_march, by subsetting the last 19 days of the target data frame.
- a new data frame, tgt_vol, by subsetting the Date and Volume columns from tgt_march.
- a new data frame, tgt_close, by subsetting the Date and Close columns from tgt_march.
- Plot a line chart for the tgt_close data titled "Target (TGT) closing stock price" with Date along the x-axis and Close along the y-axis.
- Plot a line chart for the tgt_vol data titled "Target (TGT) volume" with Date along the x-axis and Volume along the y-axis.
If the input is:
3 The output is:
The volume of TGT on 2018-03-05 is 7654766. The closing stock price of TGT on 2018-03-05 is $75.14.Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
