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