Question: 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

1 Expert Approved Answer
Step: 1 Unlock

It seems the question is a comprehensive exercise involving Jupyter Notebooks The task is to import data manipulate it using a DataFrame and visualize ... View full answer

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!