Answered step by step
Verified Expert Solution
Link Copied!

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

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:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

4. Are there any disadvantages?

Answered: 1 week ago

Question

3. What are the main benefits of using more information technology?

Answered: 1 week ago

Question

start to review and develop your employability skills

Answered: 1 week ago