% THE FOLLOWING CODE WORKS FOR PRICE, FUNDAMENTALS, AND ESTIMATES DATASETS (BOTH 1yr and 10yr)

% Unzip files and change to correct file path below
path = './estimates_hist_10Y_amer_20240726.csv';

% Load data
data = readtable(path);

% Look at sample of data
disp(head(data));

% Inspect the size of the dataset
disp(size(data));

% Explore available data
disp(data.Properties.VariableNames);

% Get price series of specific ticker
ticker = 'AAPL-US'; % For Apple Inc.
ticker_series = data(strcmp(data.TICKER, ticker), :); % if price or estimates data
ticker_series = data(strcmp(data.Ticker, ticker), :); % if fundamentals data
