Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . 1 4 LAB: Line charts Instructor note: In the case of this example, the user needs to assume that the input is equivalent
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 subset tgtvol in the code below
How does one know how to subset for first days of data? tgt I can't figure out why doing what the book says tgt: does not work
How does one know to use day double brackets? See section selecting Rows and Columns combined with the iloc function section
How do you rotate the axis labels? plt ticksrotation 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 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:
The output is:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started