Project - Stock Closing Price Prediction using Deep Learning, TensorFlow2 & Keras

20 / 32

Visualizing YAHOO Data

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.

INSTRUCTIONS

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")
Get Hint See Answer


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...