# LSTM%20updated%20 course: Module 3 — Deep Learning & NLP module: Module-3-Deep-Learning-NLP type: pdf source_url: https://personal-learn.armco.dev/files/Module-3-Deep-Learning-NLP/General/Lab_Materials-28-03-2026/LSTM%20updated%20.pdf pages: 42 --- [page 1] Dow Jones Index Dataset The Dow Jones Index dataset contains weekly stock market data for 30 major companies in the Dow Jones Industrial Average. Each record represents one week of trading activity for a company, including price movements, trading volume, and dividend information. Although the dataset provides many features, in this study we focus on predicting the next week’s closing price using a Long Short-T erm Memory (LSTM) network, a special type of Recurrent Neural Network (RNN). The dataset covers a limited time span: 6 months of 2011 (January–June) — which results in about 750 weekly records across 30 stocks. Source: UCI Machine Learning Repository UCI Dataset Page Target Variable: next_weeks_close (numeric): Closing price of the stock for the following week. Features: Column Name Description Data Type quarter Fiscal quarter of data (1–4) Integer stock Stock ticker symbol (e.g., A A, A X P) Categorical date Week-ending date of the record Date open Stock price at market open (that week) Numeric (float) high Highest stock price during the week Numeric (float) low Lowest stock price during the week Numeric (float) close Stock price at market close (that week) Numeric (float) volume T otal trading volume during the week Numeric (float) percent_change_price Percent change from opening to closing price Numeric (float) percent_change_volume_over_last_wk Percent change in volume relative to the previous week Numeric (float) previous_weeks_volume Trading volume of the previous week Numeric (float) next_weeks_open Stock price at market open (next week) Numeric (float) next_weeks_close Stock price at market close (next week) — Target Numeric percent_change_next_weeks_price Percent change in price from next week’s open to close Numeric (float) days_to_next_dividend Number of days until the next dividend is paid Integer percent_return_next_dividend Percent return from the next dividend relative to stock price Numeric (float) Load into pandas dataframe displaying the head quarter stock date open high low close volume percent_change_price percent_change_volume_over_last_wk previous_weeks_volume next_weeks_open next_weeks_close percent_change_next_weeks_price days_to_next_dividend percent_return_next_dividend 0 1 AA 1/7/2011 $15.82 $16.72 $15.78 $16.42 239655616 3.79267 NaN NaN $16.71 $15.97 -4.428490 26 0.182704 1 1 AA 1/14/2011 $16.71 $16.71 $15.64 $15.97 242963398 -4.42849 1.380223 239655616.0 $16.19 $15.79 -2.470660 19 0.187852 2 1 AA 1/21/2011 $16.19 $16.38 $15.60 $15.79 138428495 -2.47066 -43.024959 242963398.0 $15.87 $16.13 1.638310 12 0.189994 3 1 AA 1/28/2011 $15.87 $16.63 $15.82 $16.13 151379173 1.63831 9.355500 138428495.0 $16.18 $17.14 5.933250 5 0.185989 4 1 AA 2/4/2011 $16.18 $17.39 $16.18 $17.14 154387761 5.93325 1.987452 151379173.0 $17.33 $17.37 0.230814 97 0.175029 • • import pandas as pd # Load file with first row as header d f = p d . r e a d _ c s v ( " d o w _ j o n e s _ i n d e x . d a t a " ) d f . h e a d ( ) [page 2] <