Login using Social Account
     Continue with GoogleLogin using your credentials
Now, let us have a look at how the closing values of YAHOO data look like.
Below defined is the plotter
function which extracts the close
values, reshapes the data into columnar data, and uses that to plots the data.
Copy-paste the code to view the closing prices visualized for YAHOO stock.
def plotter(code):
global closing_stock
plt.subplot(211)
company_close = modified_df[modified_df['symbol']==code]
company_close = company_close.close.values.astype('float32')
company_close = company_close.reshape(-1, 1)
closing_stock = company_close
plt.xlabel('Time')
plt.ylabel(code + " close stock prices")
plt.title('prices Vs Time')
plt.grid(True)
plt.plot(company_close , 'b')
plt.show()
plotter("YHOO")
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...