Plot and Normalize CSV Data
Plot and Normalize CSV Data
Create CSV file with the following content and name it "AAPL.csv". It contains stock information for few days. You can get more data on https://finance.yahoo.com/quote/AAPL/history?p=AAPL.
Plot data
REad AAPL.csv file and pick 'Close' and 'Adj Close' column to plot. Then show the plot.
Here is the output.
Normalize data
We need normalize data in order to have all the values starting from the same point, so we can measure difference easily.
Here is the output. Now you can see how stocks differ from each other because both lines start from 1. Better example would be to compare 'Adj Close' for multiple datasets (like AAPL, GOOG, GLD, etc.).
Last updated