Question: 1 . 1 4 LAB: Line charts Instructor note: In the case of this example, the user needs to assume that the input is equivalent

1.14 LAB: Line charts
Instructor note:
In the case of this example, the user needs to assume that the "input" is equivalent to the 'day' value used in to sub-set tgt-vol in the code below
How does one know how to subset for first 19 days of data? tgt[-19], I can't figure out why doing what the book says tgt[0:19] does not work
How does one know to use [[day], double brackets? See section 1.4.1, selecting Rows and Columns combined with the iloc function section 1.4.2
How do you rotate the x-axis labels? - plt x ticks(rotation=). Found this on the Stackoverflow website.
Write a program that subsets the loads and subsets the stock market data in target.csv.
Load the the data from target.csv as target.
Create a new data frame, tgLmarch, by subsetting the last 19 days of the target data frame.
Create a new data frame, tgLvol, by subsetting the Date and Volume columns.
Create a new data frame, tgLclose, by subsetting the Date and Close columns.
Using the template from this link, create separate line charts for Volume and Close.
If the input is:
3
The output is:
 1.14 LAB: Line charts Instructor note: In the case of this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!