Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Jupyter Notebooks Introduction Getting Data from the web and placing it in a DataFrame 1) Enter all imports In [ ]: 2) Set the range

Jupyter Notebooks Introduction

Getting Data from the web and placing it in a DataFrame

1) Enter all imports

In [ ]:

 

2) Set the range of data to get by date, convert the text to a date type and place in a variable. (get 8 years)

In [ ]:

 

3) Get Nike stock market data and place the data into a DataFrame using the above range.

In [ ]:

 
 

4) Print the entire DataFrame that has the Nike stock data.

In [ ]:

 
 

5) Print just the first 10 rows of the DataFrame that has the Nike stock data.

In [ ]:

 
 

Setting the DataFrame Index

6) Write the code that removes only the index setting from the Nike DataFrame and keeps all the data.

In [ ]:

 
 

7) Print just the head of the DataFrame that has the Nike stock prices.

In [ ]:

 
 

8) Write the code that sets the column 'Date' as the index for the Nike stock prices DataFrame.

In [ ]:

 
 

9) Print just the head of the DataFrame that has the Nike stock data.

In [ ]:

 
 

Deleting/Dropping columns

10) Write the code that drops all the columns except the index and 'Adj Close'.

In [ ]:

 
 

11) Print just the head of the DataFrame that has the Nike stock data.

In [ ]:

 
 

Plotting

12) Import the packages to graph data and allows to change the graph style

In [ ]:

 
 

13) Write the code that graphs the Nike stock DataFrame.

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

Students also viewed these Databases questions

Question

Which field has the highest average (mean)?

Answered: 1 week ago