#NoPayJan Offer - Access all CloudxLab Courses for free between 1st to 31st JanEnroll Now >>
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")
No hints are availble for this assesment
Answer is not availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here