From 1fd50f2f357f074ae6e7d2d67accbc70204168ae Mon Sep 17 00:00:00 2001
From: sidlamsal <98344853+sidlamsal@users.noreply.github.com>
Date: Tue, 28 Jan 2025 10:44:02 -0500
Subject: [PATCH 1/9] init
---
SidLamsal-MiniProject/idea1.md | 1 +
1 file changed, 1 insertion(+)
create mode 100644 SidLamsal-MiniProject/idea1.md
diff --git a/SidLamsal-MiniProject/idea1.md b/SidLamsal-MiniProject/idea1.md
new file mode 100644
index 0000000..96236f8
--- /dev/null
+++ b/SidLamsal-MiniProject/idea1.md
@@ -0,0 +1 @@
+example
\ No newline at end of file
From b86c3cfea7df70372725fce0afad4e32a216d502 Mon Sep 17 00:00:00 2001
From: sidlamsal <98344853+sidlamsal@users.noreply.github.com>
Date: Tue, 28 Jan 2025 22:15:33 -0500
Subject: [PATCH 2/9] idea 1 and 2
---
SidLamsal-MiniProject/idea1.md | 22 +++++++++++++++++++-
SidLamsal-MiniProject/idea2.md | 38 ++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 1 deletion(-)
create mode 100644 SidLamsal-MiniProject/idea2.md
diff --git a/SidLamsal-MiniProject/idea1.md b/SidLamsal-MiniProject/idea1.md
index 96236f8..92a4735 100644
--- a/SidLamsal-MiniProject/idea1.md
+++ b/SidLamsal-MiniProject/idea1.md
@@ -1 +1,21 @@
-example
\ No newline at end of file
+# Idea 1: The Economics of Presidential Elections
+
+## Research Question
+- What economic factors have historically been indicative of the outcome of presidential elections?
+
+Election year in the USA brings about a lot of conversation, many of which are related to the economy under the current administration/party and what changes the opposition's policies would bring. This project would look at the performance of the economy under different administrations and see if, for example, one party historically has higher or lower metrics in different categories. Additionally, we can look at performance during the terms and see if any metrics predict whether or not the current party retains the presidency.
+
+Election indicators are a popular topic during election years. For example, Matt Krantz of *Investor's Business Daily* wrote an [article](https://www.investors.com/etfs-and-funds/sectors/sp500-86-accurate-stock-market-indicator-predicts-next-president/) about how the "incumbent party was reelected 82% of the time when the S&P 500 rose in the three-month period from July 31 to Oct. 31". As such, this analysis will include data on the performance of top index funds such as S&P 500, Nasdaq, and Dow Jones. Additionally, this study will also include public polls and surveys about general public sentiment leading up to elections.
+
+## Data Source
+The majority of the data will be from government economic data sources such as the [Bureau of Labor Statistics (BLS)](https://www.bls.gov) and [FRED](https://fred.stlouisfed.org). These sites provide reliable data on economic factors, including index funds, in CSV format. Data will have to be aggregated into a single dataset. There might be two datasets—one with data on economic performance for each year and a second subset focusing on terms for the prediction metrics.
+
+## Models
+The project will use a variety of models and compare performance on predicting the presidency. These will include logistic regression, tree-based methods, and a simple neural network. Likely regression and tree-based will be optimal for seeing which variables are most import since their output is very transparent although the neural net might have better performance. Additionally, clustering and general data visualization will be used to display economic performance under different parties, different eras, first-term vs. second-term presidencies, etc.
+
+## Implications for Stakeholders
+For results related to how party affiliation affects economic performance, the primary stakeholders will be U.S. citizens, policymakers, and financial analysts. Voters may gain insights into how different economic indicators have historically aligned with presidential election outcomes, helping them better understand the economic context behind campaign narratives. Financial professionals and market analysts may also find value in identifying trends that could influence investment decisions around election cycles. Sitting presidents and aspiring presidents could also get insight on what issues and areas to focus on / challenge.
+
+## Ethical Implications
+Ethically, the results of this project must be presented with neutrality and transparency. Correlation does not imply causation, and any findings should be interpreted with caution to avoid misleading conclusions. This analysis may challenge assumptions about which party is perceived as "better" for the economy, exposing gaps between economic realities and political messaging. Additionally, the findings may contradict widely held beliefs about which party historically excels in certain economic areas. Additionally, the study should acknowledge potential biases in economic data collection, external global factors affecting economic performance, and the evolving nature of political and financial systems over time. The goal is to provide informative insights rather than prescriptive conclusions about which policies or parties are "better" for the economy.
+
diff --git a/SidLamsal-MiniProject/idea2.md b/SidLamsal-MiniProject/idea2.md
new file mode 100644
index 0000000..c1f8478
--- /dev/null
+++ b/SidLamsal-MiniProject/idea2.md
@@ -0,0 +1,38 @@
+# Idea 2: NBA Player Salaries
+
+## Research Question
+- What factors—both on-court performance and off-court influence—are most predictive of NBA player salaries?
+
+NBA salaries vary significantly, and while performance is an obvious factor, other elements like marketability, social media presence, and endorsement deals likely play a role in salary negotiations. This project aims to analyze a combination of in-game statistics (e.g., points per game, assists, defensive metrics) and off-court factors (e.g., Instagram followers, brand deals, media coverage) to determine which variables best predict a player's earnings.
+
+Given the NBA's salary cap and contract structures, this analysis could also explore how different teams allocate their payrolls—whether they prioritize star players, depth, or specific skill sets. Additionally, it could examine salary disparities by position, experience level, and market size.
+
+## Data Source
+The data will be semi-current or adjusted for inflation to avoid bias. Data sources include:
+
+- **On-Court Performance Data**: [Basketball-Reference](https://www.basketball-reference.com), [NBA Stats](https://www.nba.com/stats), and [ESPN](https://www.espn.com/nba/stats) provide detailed player statistics.
+- **Salary Data**: [Spotrac](https://www.spotrac.com/nba/) and [HoopsHype](https://hoopshype.com/salaries/) offer publicly available NBA salary information.
+- **Off-Court Influence**: Social media metrics from Instagram, Twitter, and TikTok (scraped or accessed via APIs), Forbes reports on athlete earnings, and news coverage on endorsement deals.
+
+Data will be aggregated to create a comprehensive dataset of player statistics, salaries, and external influence metrics.
+
+## Models
+A variety of models will be used to analyze player salary prediction and salary allocation trends:
+
+- **Regression Models (Linear, Lasso, Ridge)**: To quantify the impact of different variables on salary.
+- **Tree-Based Models (Random Forest, XGBoost)**: To better capture non-linear relationships between variables.
+- **Clustering**: To group players by salary tiers and identify common characteristics.
+- **Neural Networks**: To test if deep learning models can outperform traditional statistical methods in salary prediction.
+
+Data visualization techniques will also be employed to showcase trends, such as how player salaries have changed over time or how different franchises prioritize spending.
+
+## Implications for Stakeholders
+Understanding the key factors driving NBA salaries could benefit multiple stakeholders:
+
+- **Players & Agents**: Insights into what contributes to higher earnings could help players negotiate better contracts.
+- **Teams & Front Offices**: A better understanding of salary allocation strategies could help optimize roster construction.
+- **Fans & Analysts**: An objective look at whether contracts are justified based on performance and influence.
+- **Sponsorship & Marketing Firms**: Companies could use findings to assess which players provide the best return on investment for endorsement deals.
+
+## Ethical Implications
+This analysis could challenge assumptions about how NBA salaries are determined, revealing potential biases in contract negotiations. If off-court factors (e.g., marketability, social media following) are stronger predictors than performance, it may raise ethical concerns about merit-based pay versus commercial appeal. Additionally, disparities in salaries across positions, race, or experience level could emerge, requiring careful interpretation to avoid misleading conclusions. Ensuring transparency in methodology and acknowledging external influences (e.g., salary cap rules, team financial constraints) will be crucial in maintaining fairness and neutrality in the analysis.
From db4eaa9f0fd1bde5bb64394ef970364954311bdc Mon Sep 17 00:00:00 2001
From: sidlamsal <98344853+sidlamsal@users.noreply.github.com>
Date: Wed, 29 Jan 2025 23:53:11 -0500
Subject: [PATCH 3/9] small change'
---
SidLamsal-MiniProject/idea1.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SidLamsal-MiniProject/idea1.md b/SidLamsal-MiniProject/idea1.md
index 92a4735..013021f 100644
--- a/SidLamsal-MiniProject/idea1.md
+++ b/SidLamsal-MiniProject/idea1.md
@@ -8,7 +8,7 @@ Election year in the USA brings about a lot of conversation, many of which are r
Election indicators are a popular topic during election years. For example, Matt Krantz of *Investor's Business Daily* wrote an [article](https://www.investors.com/etfs-and-funds/sectors/sp500-86-accurate-stock-market-indicator-predicts-next-president/) about how the "incumbent party was reelected 82% of the time when the S&P 500 rose in the three-month period from July 31 to Oct. 31". As such, this analysis will include data on the performance of top index funds such as S&P 500, Nasdaq, and Dow Jones. Additionally, this study will also include public polls and surveys about general public sentiment leading up to elections.
## Data Source
-The majority of the data will be from government economic data sources such as the [Bureau of Labor Statistics (BLS)](https://www.bls.gov) and [FRED](https://fred.stlouisfed.org). These sites provide reliable data on economic factors, including index funds, in CSV format. Data will have to be aggregated into a single dataset. There might be two datasets—one with data on economic performance for each year and a second subset focusing on terms for the prediction metrics.
+The majority of the data will be from government economic data sources such as the [Bureau of Labor Statistics (BLS)](https://www.bls.gov) and [FRED](https://fred.stlouisfed.org). These sites provide reliable data on economic factors, including index funds, in CSV format. Data will have to be aggregated into a single dataset. There might be two datasets—one with data on economic performance for each year and a second subset focusing on terms for the prediction metrics. [Wikipedia](https://en.wikipedia.org/wiki/Polling_for_United_States_presidential_elections) has data on pre-election polling results.
## Models
The project will use a variety of models and compare performance on predicting the presidency. These will include logistic regression, tree-based methods, and a simple neural network. Likely regression and tree-based will be optimal for seeing which variables are most import since their output is very transparent although the neural net might have better performance. Additionally, clustering and general data visualization will be used to display economic performance under different parties, different eras, first-term vs. second-term presidencies, etc.
From 1ceb4ff843a996a772b6219e2d303e603457c775 Mon Sep 17 00:00:00 2001
From: sidlamsal <98344853+sidlamsal@users.noreply.github.com>
Date: Tue, 11 Feb 2025 13:11:22 -0500
Subject: [PATCH 4/9] start
---
.../MiniProjectCode/GDPC1_PC1.csv | 301 ++++++++++++++++++
.../MiniProjectCode/miniProjectCode.ipynb | 124 ++++++++
2 files changed, 425 insertions(+)
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/GDPC1_PC1.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/miniProjectCode.ipynb
diff --git a/SidLamsal-MiniProject/MiniProjectCode/GDPC1_PC1.csv b/SidLamsal-MiniProject/MiniProjectCode/GDPC1_PC1.csv
new file mode 100644
index 0000000..35a6007
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/GDPC1_PC1.csv
@@ -0,0 +1,301 @@
+observation_date,GDPC1_PC1
+1950-01-01,3.77286
+1950-04-01,7.30336
+1950-07-01,10.31016
+1950-10-01,13.37239
+1951-01-01,10.56488
+1951-04-01,9.14992
+1951-07-01,7.25300
+1951-10-01,5.46816
+1952-01-01,5.16533
+1952-04-01,3.59627
+1952-07-01,2.23736
+1952-10-01,5.36408
+1953-01-01,6.18988
+1953-04-01,6.78199
+1953-07-01,5.42099
+1953-10-01,0.52406
+1954-01-01,-1.78193
+1954-04-01,-2.42878
+1954-07-01,-0.76833
+1954-10-01,2.72862
+1955-01-01,6.17020
+1955-04-01,7.78024
+1955-07-01,8.01592
+1955-10-01,6.57902
+1956-01-01,3.21695
+1956-04-01,2.40346
+1956-07-01,0.94797
+1956-10-01,1.99683
+1957-01-01,3.04976
+1957-04-01,1.98098
+1957-07-01,3.07278
+1957-10-01,0.35470
+1958-01-01,-2.87229
+1958-04-01,-2.01954
+1958-07-01,-0.72596
+1958-10-01,2.65733
+1959-01-01,7.41511
+1959-04-01,9.11883
+1959-07-01,6.72622
+1959-10-01,4.58494
+1960-01-01,4.92380
+1960-04-01,2.05910
+1960-07-01,2.48766
+1960-10-01,0.88510
+1961-01-01,-0.66752
+1961-04-01,1.56578
+1961-07-01,3.01153
+1961-10-01,6.39750
+1962-01-01,7.56916
+1962-04-01,6.73027
+1962-07-01,6.00687
+1962-10-01,4.30985
+1963-01-01,3.60111
+1963-04-01,3.82459
+1963-07-01,4.81870
+1963-10-01,5.15981
+1964-01-01,6.21734
+1964-04-01,6.18231
+1964-07-01,5.52129
+1964-10-01,5.15781
+1965-01-01,5.47830
+1965-04-01,5.66027
+1965-07-01,6.34748
+1965-10-01,8.46227
+1966-01-01,8.47702
+1966-04-01,7.48934
+1966-07-01,6.04211
+1966-10-01,4.50440
+1967-01-01,2.92507
+1967-04-01,2.63774
+1967-07-01,2.73874
+1967-10-01,2.67093
+1968-01-01,3.84482
+1968-04-01,5.51468
+1968-07-01,5.33535
+1968-10-01,4.95786
+1969-01-01,4.46943
+1969-04-01,3.06478
+1969-07-01,2.94761
+1969-10-01,2.04421
+1970-01-01,0.32279
+1970-04-01,0.16112
+1970-07-01,0.42134
+1970-10-01,-0.16735
+1971-01-01,2.69716
+1971-04-01,3.10644
+1971-07-01,3.00528
+1971-10-01,4.36555
+1972-01-01,3.47251
+1972-04-01,5.25138
+1972-07-01,5.37836
+1972-10-01,6.89181
+1973-01-01,7.56118
+1973-04-01,6.31955
+1973-07-01,4.77135
+1973-10-01,4.02406
+1974-01-01,0.63900
+1974-04-01,-0.20826
+1974-07-01,-0.62904
+1974-10-01,-1.94576
+1975-01-01,-2.29977
+1975-04-01,-1.83484
+1975-07-01,0.79862
+1975-10-01,2.55480
+1976-01-01,6.15430
+1976-04-01,6.17398
+1976-07-01,4.95826
+1976-10-01,4.31152
+1977-01-01,3.22684
+1977-04-01,4.46530
+1977-07-01,5.76999
+1977-10-01,5.01327
+1978-01-01,4.11411
+1978-04-01,6.07793
+1978-07-01,5.24703
+1978-10-01,6.65956
+1979-01-01,6.51045
+1979-04-01,2.65670
+1979-07-01,2.38945
+1979-10-01,1.28409
+1980-01-01,1.42055
+1980-04-01,-0.77507
+1980-07-01,-1.62375
+1980-10-01,-0.03905
+1981-01-01,1.60000
+1981-04-01,2.96867
+1981-07-01,4.32572
+1981-10-01,1.29983
+1982-01-01,-2.19052
+1982-04-01,-1.01075
+1982-07-01,-2.55604
+1982-10-01,-1.44318
+1983-01-01,1.43147
+1983-04-01,3.26848
+1983-07-01,5.73697
+1983-10-01,7.89966
+1984-01-01,8.57805
+1984-04-01,7.99653
+1984-07-01,6.90073
+1984-10-01,5.57564
+1985-01-01,4.55482
+1985-04-01,3.68399
+1985-07-01,4.26242
+1985-10-01,4.18246
+1986-01-01,4.14611
+1986-04-01,3.70200
+1986-07-01,3.11918
+1986-10-01,2.90724
+1987-01-01,2.71158
+1987-04-01,3.35360
+1987-07-01,3.26199
+1987-10-01,4.47456
+1988-01-01,4.24126
+1988-04-01,4.48449
+1988-07-01,4.19320
+1988-10-01,3.79934
+1989-01-01,4.31516
+1989-04-01,3.74791
+1989-07-01,3.90754
+1989-10-01,2.74321
+1990-01-01,2.82101
+1990-04-01,2.41270
+1990-07-01,1.72736
+1990-10-01,0.60306
+1991-01-01,-0.95020
+1991-04-01,-0.53893
+1991-07-01,-0.10281
+1991-10-01,1.16640
+1992-01-01,2.85894
+1992-04-01,3.16984
+1992-07-01,3.66539
+1992-10-01,4.38265
+1993-01-01,3.31991
+1993-04-01,2.80667
+1993-07-01,2.28651
+1993-10-01,2.60771
+1994-01-01,3.43071
+1994-04-01,4.22561
+1994-07-01,4.33705
+1994-10-01,4.11617
+1995-01-01,3.48141
+1995-04-01,2.40238
+1995-07-01,2.67333
+1995-10-01,2.19979
+1996-01-01,2.60131
+1996-04-01,4.00238
+1996-07-01,4.05013
+1996-10-01,4.42145
+1997-01-01,4.31407
+1997-04-01,4.31127
+1997-07-01,4.67470
+1997-10-01,4.48355
+1998-01-01,4.85553
+1998-04-01,4.09279
+1998-07-01,4.10345
+1998-10-01,4.88313
+1999-01-01,4.81634
+1999-04-01,4.72189
+1999-07-01,4.79112
+1999-10-01,4.82357
+2000-01-01,4.22474
+2000-04-01,5.24446
+2000-07-01,3.97317
+2000-10-01,2.90559
+2001-01-01,2.19751
+2001-04-01,0.99630
+2001-07-01,0.48924
+2001-10-01,0.16732
+2002-01-01,1.33726
+2002-04-01,1.32538
+2002-07-01,2.14652
+2002-10-01,1.99252
+2003-01-01,1.67926
+2003-04-01,1.95507
+2003-07-01,3.23114
+2003-10-01,4.30044
+2004-01-01,4.34195
+2004-04-01,4.22749
+2004-07-01,3.49486
+2004-10-01,3.35110
+2005-01-01,3.90884
+2005-04-01,3.61774
+2005-07-01,3.44860
+2005-10-01,2.97274
+2006-01-01,3.21311
+2006-04-01,2.97290
+2006-07-01,2.32528
+2006-10-01,2.63456
+2007-01-01,1.57672
+2007-04-01,1.93437
+2007-07-01,2.36804
+2007-10-01,2.13336
+2008-01-01,1.39247
+2008-04-01,1.37601
+2008-07-01,0.26597
+2008-10-01,-2.54115
+2009-01-01,-3.23423
+2009-04-01,-3.97884
+2009-07-01,-3.13282
+2009-10-01,0.10557
+2010-01-01,1.74527
+2010-04-01,2.91360
+2010-07-01,3.34421
+2010-10-01,2.77596
+2011-01-01,2.03780
+2011-04-01,1.74371
+2011-07-01,0.94265
+2011-10-01,1.54308
+2012-01-01,2.63807
+2012-04-01,2.40334
+2012-07-01,2.57371
+2012-10-01,1.55185
+2013-01-01,1.70087
+2013-04-01,1.51994
+2013-07-01,2.23702
+2013-10-01,3.00914
+2014-01-01,1.65082
+2014-04-01,2.68915
+2014-07-01,3.05978
+2014-10-01,2.68584
+2015-01-01,3.96930
+2015-04-01,3.27909
+2015-07-01,2.44732
+2015-10-01,2.11986
+2016-01-01,1.79502
+2016-04-01,1.49325
+2016-07-01,1.80576
+2016-10-01,2.18157
+2017-01-01,2.08746
+2017-04-01,2.33041
+2017-07-01,2.41082
+2017-10-01,2.99414
+2018-01-01,3.32881
+2018-04-01,3.29896
+2018-07-01,3.13003
+2018-10-01,2.12511
+2019-01-01,1.93356
+2019-04-01,2.24213
+2019-07-01,2.79722
+2019-10-01,3.35178
+2020-01-01,1.28035
+2020-04-01,-7.50237
+2020-07-01,-1.41306
+2020-10-01,-1.01860
+2021-01-01,1.76454
+2021-04-01,12.23926
+2021-07-01,4.97658
+2021-10-01,5.72268
+2022-01-01,4.01489
+2022-04-01,2.47892
+2022-07-01,2.29639
+2022-10-01,1.31633
+2023-01-01,2.28081
+2023-04-01,2.82946
+2023-07-01,3.23631
+2023-10-01,3.19622
+2024-01-01,2.90183
+2024-04-01,3.03685
+2024-07-01,2.71877
+2024-10-01,2.48386
diff --git a/SidLamsal-MiniProject/MiniProjectCode/miniProjectCode.ipynb b/SidLamsal-MiniProject/MiniProjectCode/miniProjectCode.ipynb
new file mode 100644
index 0000000..fc77da5
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/miniProjectCode.ipynb
@@ -0,0 +1,124 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "vscode": {
+ "languageId": "markdown"
+ }
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " observation_date | \n",
+ " GDPC1_PC1 | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950-01-01 | \n",
+ " 3.77286 | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950-04-01 | \n",
+ " 7.30336 | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950-07-01 | \n",
+ " 10.31016 | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950-10-01 | \n",
+ " 13.37239 | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951-01-01 | \n",
+ " 10.56488 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " observation_date GDPC1_PC1\n",
+ "0 1950-01-01 3.77286\n",
+ "1 1950-04-01 7.30336\n",
+ "2 1950-07-01 10.31016\n",
+ "3 1950-10-01 13.37239\n",
+ "4 1951-01-01 10.56488"
+ ]
+ },
+ "execution_count": 1,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "import pandas as pd\n",
+ "\n",
+ "# Replace 'your_file.csv' with the path to your CSV file\n",
+ "df = pd.read_csv('GDPC1_PC1.csv')\n",
+ "\n",
+ "# Display the first few rows of the DataFrame\n",
+ "df.head()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "vscode": {
+ "languageId": "markdown"
+ }
+ },
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.12.1"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 2
+}
From ac1d228ee0f6873d0ceaf7729162f9e74c00d0f9 Mon Sep 17 00:00:00 2001
From: sidlamsal <98344853+sidlamsal@users.noreply.github.com>
Date: Thu, 13 Feb 2025 13:11:47 -0500
Subject: [PATCH 5/9] data set created
---
.../MiniProjectCode/CPIAUCSL_PC1.csv | 301 ++
.../MiniProjectCode/CUUR0000SETB01_CCH.csv | 301 ++
SidLamsal-MiniProject/MiniProjectCode/DFF.csv | 283 ++
.../MiniProjectCode/GDPC1_CCH.csv | 301 ++
.../MiniProjectCode/GDPC1_PC1.csv | 301 --
.../HstDebt_19490101_20240930.csv | 77 +
.../MiniProjectCode/MiniProjectNotebook.ipynb | 2599 +++++++++++++++++
.../MiniProjectCode/Presidents.csv | 86 +
.../MiniProjectCode/SNP500.csv | 899 ++++++
.../MiniProjectCode/UMCSENT.csv | 289 ++
.../MiniProjectCode/UNRATE.csv | 302 ++
.../MiniProjectCode/miniProjectCode.ipynb | 124 -
12 files changed, 5438 insertions(+), 425 deletions(-)
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/CPIAUCSL_PC1.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/CUUR0000SETB01_CCH.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/DFF.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/GDPC1_CCH.csv
delete mode 100644 SidLamsal-MiniProject/MiniProjectCode/GDPC1_PC1.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/HstDebt_19490101_20240930.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/MiniProjectNotebook.ipynb
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/Presidents.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/SNP500.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/UMCSENT.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/UNRATE.csv
delete mode 100644 SidLamsal-MiniProject/MiniProjectCode/miniProjectCode.ipynb
diff --git a/SidLamsal-MiniProject/MiniProjectCode/CPIAUCSL_PC1.csv b/SidLamsal-MiniProject/MiniProjectCode/CPIAUCSL_PC1.csv
new file mode 100644
index 0000000..3c5bb7f
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/CPIAUCSL_PC1.csv
@@ -0,0 +1,301 @@
+observation_date,CPIAUCSL_PC1
+1950-01-01,-1.48963
+1950-04-01,-0.62718
+1950-07-01,2.05200
+1950-10-01,4.36743
+1951-01-01,8.94573
+1951-04-01,9.17251
+1951-07-01,7.14778
+1951-10-01,6.57397
+1952-01-01,2.80192
+1952-04-01,2.08119
+1952-07-01,2.82776
+1952-10-01,1.44395
+1953-01-01,0.76972
+1953-04-01,0.88095
+1953-07-01,0.66250
+1953-10-01,0.72419
+1954-01-01,1.25219
+1954-04-01,0.71108
+1954-07-01,-0.01242
+1954-10-01,-0.49585
+1955-01-01,-0.59362
+1955-04-01,-0.56980
+1955-07-01,-0.23597
+1955-10-01,0.37374
+1956-01-01,0.24882
+1956-04-01,1.04647
+1956-07-01,2.01668
+1956-10-01,2.58161
+1957-01-01,3.41276
+1957-04-01,3.61238
+1957-07-01,3.46553
+1957-10-01,3.08530
+1958-01-01,3.45614
+1958-04-01,3.27225
+1958-07-01,2.29980
+1958-10-01,1.91315
+1959-01-01,0.89317
+1959-04-01,0.39175
+1959-07-01,0.96841
+1959-10-01,1.47414
+1960-01-01,1.39112
+1960-04-01,1.82486
+1960-07-01,1.35876
+1960-10-01,1.39598
+1961-01-01,1.50811
+1961-04-01,0.86790
+1961-07-01,1.20536
+1961-10-01,0.70517
+1962-01-01,0.89366
+1962-04-01,1.30741
+1962-07-01,1.20214
+1962-10-01,1.30043
+1963-01-01,1.22896
+1963-04-01,1.03684
+1963-07-01,1.36384
+1963-10-01,1.39346
+1964-01-01,1.48748
+1964-04-01,1.46288
+1964-07-01,1.07422
+1964-10-01,1.26610
+1965-01-01,1.16392
+1965-04-01,1.64622
+1965-07-01,1.71766
+1965-10-01,1.78457
+1966-01-01,2.41824
+1966-04-01,2.68868
+1966-07-01,3.27177
+1966-10-01,3.56955
+1967-01-01,2.87081
+1967-04-01,2.56675
+1967-07-01,2.70823
+1967-10-01,2.99037
+1968-01-01,3.74115
+1968-04-01,4.12060
+1968-07-01,4.47761
+1968-10-01,4.62598
+1969-01-01,4.87329
+1969-04-01,5.50193
+1969-07-01,5.52381
+1969-10-01,5.83255
+1970-01-01,6.22677
+1970-04-01,6.03843
+1970-07-01,5.68592
+1970-10-01,5.60000
+1971-01-01,4.81190
+1971-04-01,4.31406
+1971-07-01,4.26985
+1971-10-01,3.53535
+1972-01-01,3.50584
+1972-04-01,3.22581
+1972-07-01,3.03030
+1972-10-01,3.33333
+1973-01-01,4.11290
+1973-04-01,5.60897
+1973-07-01,6.83625
+1973-10-01,8.41857
+1974-01-01,9.91479
+1974-04-01,10.54628
+1974-07-01,11.45833
+1974-10-01,12.04644
+1975-01-01,11.13460
+1975-04-01,9.54015
+1975-07-01,8.67824
+1975-10-01,7.38342
+1976-01-01,6.34115
+1976-04-01,6.01504
+1976-07-01,5.58968
+1976-10-01,5.18697
+1977-01-01,5.90340
+1977-04-01,6.79669
+1977-07-01,6.57359
+1977-10-01,6.59404
+1978-01-01,6.47523
+1978-04-01,7.02822
+1978-07-01,8.02402
+1978-10-01,8.92953
+1979-01-01,9.78318
+1979-04-01,10.75491
+1979-07-01,11.72309
+1979-10-01,12.64198
+1980-01-01,14.21002
+1980-04-01,14.42577
+1980-07-01,12.93532
+1980-10-01,12.53836
+1981-01-01,11.26107
+1981-04-01,9.87352
+1981-07-01,10.85302
+1981-10-01,9.58317
+1982-01-01,7.58150
+1982-04-01,6.90680
+1982-07-01,5.81647
+1982-10-01,4.44365
+1983-01-01,3.59408
+1983-04-01,3.29976
+1983-07-01,2.52646
+1983-10-01,3.23349
+1984-01-01,4.62585
+1984-04-01,4.40484
+1984-07-01,4.29570
+1984-10-01,4.15430
+1985-01-01,3.64109
+1985-04-01,3.60709
+1985-07-01,3.35249
+1985-10-01,3.51377
+1986-01-01,3.10540
+1986-04-01,1.67858
+1986-07-01,1.66821
+1986-10-01,1.34557
+1987-01-01,2.03833
+1987-04-01,3.69917
+1987-07-01,4.16287
+1987-10-01,4.40555
+1988-01-01,3.96541
+1988-04-01,3.97995
+1988-07-01,4.14236
+1988-10-01,4.30636
+1989-01-01,4.67451
+1989-04-01,5.16019
+1989-07-01,4.70588
+1989-10-01,4.62732
+1990-01-01,5.23288
+1990-04-01,4.58345
+1990-07-01,5.56447
+1990-10-01,6.27648
+1991-01-01,5.25905
+1991-04-01,4.84661
+1991-07-01,3.85200
+1991-10-01,2.96536
+1992-01-01,2.89389
+1992-04-01,3.07352
+1992-07-01,3.07467
+1992-10-01,3.12197
+1993-01-01,3.17308
+1993-04-01,3.12500
+1993-07-01,2.81723
+1993-10-01,2.76930
+1994-01-01,2.53961
+1994-04-01,2.38260
+1994-07-01,2.85517
+1994-10-01,2.60333
+1995-01-01,2.84026
+1995-04-01,3.09535
+1995-07-01,2.66398
+1995-10-01,2.62631
+1996-01-01,2.78392
+1996-04-01,2.82709
+1996-07-01,2.90013
+1996-10-01,3.23140
+1997-01-01,2.94497
+1997-04-01,2.30179
+1997-07-01,2.22505
+1997-10-01,1.89076
+1998-01-01,1.48256
+1998-04-01,1.58333
+1998-07-01,1.59619
+1998-10-01,1.52577
+1999-01-01,1.68724
+1999-04-01,2.11239
+1999-07-01,2.34646
+1999-10-01,2.61982
+2000-01-01,3.25779
+2000-04-01,3.29383
+2000-07-01,3.46890
+2000-10-01,3.44350
+2001-01-01,3.40976
+2001-04-01,3.32491
+2001-07-01,2.67823
+2001-10-01,1.87488
+2002-01-01,1.23176
+2002-04-01,1.31728
+2002-07-01,1.57628
+2002-10-01,2.25352
+2003-01-01,2.97641
+2003-04-01,2.00594
+2003-07-01,2.21689
+2003-10-01,2.00184
+2004-01-01,1.81785
+2004-04-01,2.78587
+2004-07-01,2.67486
+2004-10-01,3.38495
+2005-01-01,3.03517
+2005-04-01,2.92294
+2005-07-01,3.81975
+2005-10-01,3.67468
+2006-01-01,3.69087
+2006-04-01,3.92427
+2006-07-01,3.34012
+2006-10-01,1.96540
+2007-01-01,2.43165
+2007-04-01,2.66529
+2007-07-01,2.34897
+2007-10-01,4.03114
+2008-01-01,4.13704
+2008-04-01,4.31042
+2008-07-01,5.25250
+2008-10-01,1.59580
+2009-01-01,-0.18424
+2009-04-01,-0.94214
+2009-07-01,-1.60696
+2009-10-01,1.48766
+2010-01-01,2.35257
+2010-04-01,1.77527
+2010-07-01,1.20288
+2010-10-01,1.22978
+2011-01-01,2.14822
+2011-04-01,3.34611
+2011-07-01,3.71595
+2011-10-01,3.34473
+2012-01-01,2.82932
+2012-04-01,1.88792
+2012-07-01,1.68486
+2012-10-01,1.90357
+2013-01-01,1.74020
+2013-04-01,1.41472
+2013-07-01,1.50495
+2013-10-01,1.20730
+2014-01-01,1.42991
+2014-04-01,2.08034
+2014-07-01,1.79097
+2014-10-01,1.16401
+2015-01-01,-0.11289
+2015-04-01,0.03701
+2015-07-01,0.15861
+2015-10-01,0.40047
+2016-01-01,0.99184
+2016-04-01,1.11003
+2016-07-01,1.15715
+2016-10-01,1.80698
+2017-01-01,2.58713
+2017-04-01,1.89059
+2017-07-01,1.94494
+2017-10-01,2.10778
+2018-01-01,2.24862
+2018-04-01,2.68679
+2018-07-01,2.60892
+2018-10-01,2.21352
+2019-01-01,1.63002
+2019-04-01,1.82238
+2019-07-01,1.74940
+2019-10-01,2.04859
+2020-01-01,2.12390
+2020-04-01,0.42260
+2020-07-01,1.23095
+2020-10-01,1.22598
+2021-01-01,1.89475
+2021-04-01,4.79728
+2021-07-01,5.26471
+2021-10-01,6.75376
+2022-01-01,8.02353
+2022-04-01,8.59334
+2022-07-01,8.28869
+2022-10-01,7.09080
+2023-01-01,5.74983
+2023-04-01,4.03157
+2023-07-01,3.56176
+2023-10-01,3.23615
+2024-01-01,3.24919
+2024-04-01,3.19431
+2024-07-01,2.64001
+2024-10-01,2.73538
diff --git a/SidLamsal-MiniProject/MiniProjectCode/CUUR0000SETB01_CCH.csv b/SidLamsal-MiniProject/MiniProjectCode/CUUR0000SETB01_CCH.csv
new file mode 100644
index 0000000..eaaf5b6
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/CUUR0000SETB01_CCH.csv
@@ -0,0 +1,301 @@
+observation_date,CUUR0000SETB01_CCH
+1950-01-01,-2.65268
+1950-04-01,1.06953
+1950-07-01,1.58315
+1950-10-01,1.55847
+1951-01-01,0.51414
+1951-04-01,0.00000
+1951-07-01,-1.03094
+1951-10-01,2.55768
+1952-01-01,1.00503
+1952-04-01,0.49875
+1952-07-01,0.49628
+1952-10-01,-1.49629
+1953-01-01,3.94140
+1953-04-01,0.96155
+1953-07-01,5.12933
+1953-10-01,-0.45558
+1954-01-01,0.00000
+1954-04-01,-0.45767
+1954-07-01,-0.92167
+1954-10-01,0.00000
+1955-01-01,0.92167
+1955-04-01,1.36676
+1955-07-01,0.90091
+1955-10-01,0.89286
+1956-01-01,0.00000
+1956-04-01,0.88496
+1956-07-01,3.03711
+1956-10-01,-0.85837
+1957-01-01,2.13228
+1957-04-01,0.97971
+1957-07-01,-0.69881
+1957-10-01,-0.28090
+1958-01-01,-1.13155
+1958-04-01,-0.71378
+1958-07-01,2.68567
+1958-10-01,-3.11640
+1959-01-01,0.00000
+1959-04-01,1.71188
+1959-07-01,0.84508
+1959-10-01,2.76643
+1960-01-01,-1.51206
+1960-04-01,0.13841
+1960-07-01,2.72868
+1960-10-01,-0.26954
+1961-01-01,-0.81301
+1961-04-01,-3.60150
+1961-07-01,3.05579
+1961-10-01,-0.96221
+1962-01-01,-0.41523
+1962-04-01,1.10346
+1962-07-01,-0.55021
+1962-10-01,2.04785
+1963-01-01,-0.81412
+1963-04-01,-1.92578
+1963-07-01,1.51622
+1963-10-01,-0.68634
+1964-01-01,
+1964-04-01,
+1964-07-01,
+1964-10-01,
+1965-01-01,
+1965-04-01,
+1965-07-01,
+1965-10-01,
+1966-01-01,0.39604
+1966-04-01,0.78741
+1966-07-01,1.55645
+1966-10-01,0.38536
+1967-01-01,0.51151
+1967-04-01,1.14142
+1967-07-01,0.50315
+1967-10-01,-0.12555
+1968-01-01,0.75094
+1968-04-01,-0.50000
+1968-07-01,1.12151
+1968-10-01,0.12384
+1969-01-01,1.35220
+1969-04-01,2.17400
+1969-07-01,-0.23923
+1969-10-01,-0.48019
+1970-01-01,-0.72464
+1970-04-01,1.92083
+1970-07-01,-0.47676
+1970-10-01,1.18766
+1971-01-01,-0.47337
+1971-04-01,-2.03722
+1971-07-01,2.51059
+1971-10-01,0.58858
+1972-01-01,-1.29949
+1972-04-01,-0.47676
+1972-07-01,2.71083
+1972-10-01,1.50032
+1973-01-01,1.02565
+1973-04-01,4.10941
+1973-07-01,2.15294
+1973-10-01,6.69318
+1974-01-01,16.06746
+1974-04-01,10.07698
+1974-07-01,1.21953
+1974-10-01,-4.25596
+1975-01-01,0.55183
+1975-04-01,3.62834
+1975-07-01,7.16681
+1975-10-01,-0.77932
+1976-01-01,-1.93902
+1976-04-01,0.21731
+1976-07-01,3.97215
+1976-10-01,0.13899
+1977-01-01,0.82988
+1977-04-01,3.05212
+1977-07-01,0.93086
+1977-10-01,-0.39788
+1978-01-01,-0.13298
+1978-04-01,1.25621
+1978-07-01,3.80323
+1978-10-01,2.18964
+1979-01-01,4.94971
+1979-04-01,15.06109
+1979-07-01,15.54525
+1979-10-01,5.73030
+1980-01-01,14.00112
+1980-04-01,5.77516
+1980-07-01,-0.10086
+1980-10-01,-0.98023
+1981-01-01,8.74359
+1981-04-01,2.76261
+1981-07-01,-1.18777
+1981-10-01,-0.61463
+1982-01-01,-3.25843
+1982-04-01,-5.12933
+1982-07-01,5.44729
+1982-10-01,-2.76812
+1983-01-01,-7.17007
+1983-04-01,4.95913
+1983-07-01,2.69931
+1983-10-01,-2.59926
+1984-01-01,-2.49760
+1984-04-01,1.59352
+1984-07-01,-2.00448
+1984-10-01,0.17144
+1985-01-01,-3.37952
+1985-04-01,6.44942
+1985-07-01,0.43096
+1985-10-01,-1.56696
+1986-01-01,-8.84787
+1986-04-01,-17.39863
+1986-07-01,-6.03243
+1986-10-01,-3.97591
+1987-01-01,8.28986
+1987-04-01,5.65904
+1987-07-01,5.03689
+1987-10-01,-0.96309
+1988-01-01,-5.42689
+1988-04-01,2.89510
+1988-07-01,3.17487
+1988-10-01,-2.55644
+1989-01-01,-1.03285
+1989-04-01,16.85225
+1989-07-01,-3.75379
+1989-10-01,-4.92821
+1990-01-01,3.23823
+1990-04-01,2.95696
+1990-07-01,10.66906
+1990-10-01,13.63967
+1991-01-01,-16.19383
+1991-04-01,-1.60485
+1991-07-01,0.20202
+1991-10-01,-0.64114
+1992-01-01,-5.28267
+1992-04-01,5.89017
+1992-07-01,3.08124
+1992-10-01,-0.88482
+1993-01-01,-3.48327
+1993-04-01,1.35412
+1993-07-01,-2.24423
+1993-10-01,0.13746
+1994-01-01,-4.71089
+1994-04-01,3.53644
+1994-07-01,6.81586
+1994-10-01,-1.17533
+1995-01-01,-3.74751
+1995-04-01,5.47310
+1995-07-01,-1.75843
+1995-10-01,-4.84617
+1996-01-01,2.41879
+1996-04-01,11.25711
+1996-07-01,-3.64456
+1996-10-01,-0.12484
+1997-01-01,0.28068
+1997-04-01,-1.60104
+1997-07-01,1.28912
+1997-10-01,-2.59508
+1998-01-01,-10.43280
+1998-04-01,-0.49947
+1998-07-01,-2.09621
+1998-10-01,-3.19137
+1999-01-01,-4.55150
+1999-04-01,16.81463
+1999-07-01,6.14484
+1999-10-01,3.33159
+2000-01-01,8.85020
+2000-04-01,8.94614
+2000-07-01,0.91002
+2000-10-01,-1.49578
+2001-01-01,-4.06624
+2001-04-01,11.11696
+2001-07-01,-10.87782
+2001-10-01,-17.97770
+2002-01-01,-4.18417
+2002-04-01,17.90591
+2002-07-01,0.33177
+2002-10-01,1.23441
+2003-01-01,11.81465
+2003-04-01,-3.14987
+2003-07-01,3.65730
+2003-10-01,-5.21944
+2004-01-01,8.42142
+2004-04-01,15.01411
+2004-07-01,-2.35783
+2004-10-01,3.51622
+2005-01-01,-1.92468
+2005-04-01,13.39362
+2005-07-01,15.07556
+2005-10-01,-5.63794
+2006-01-01,-3.40849
+2006-04-01,19.83342
+2006-07-01,-0.64459
+2006-10-01,-22.37285
+2007-01-01,4.28824
+2007-04-01,23.39159
+2007-07-01,-5.28167
+2007-10-01,3.85441
+2008-01-01,4.92317
+2008-04-01,18.67865
+2008-07-01,2.65347
+2008-10-01,-49.85553
+2009-01-01,-20.02461
+2009-04-01,19.89683
+2009-07-01,10.76105
+2009-10-01,1.04058
+2010-01-01,4.04368
+2010-04-01,3.70548
+2010-07-01,-3.31399
+2010-10-01,5.30199
+2011-01-01,12.59091
+2011-04-01,15.59075
+2011-07-01,-4.89174
+2011-10-01,-7.10250
+2012-01-01,6.30310
+2012-04-01,3.96884
+2012-07-01,-2.18740
+2012-10-01,-3.84963
+2013-01-01,1.58791
+2013-04-01,0.99322
+2013-07-01,-0.52136
+2013-10-01,-8.06558
+2014-01-01,3.12055
+2014-04-01,7.66953
+2014-07-01,-4.59640
+2014-10-01,-19.11786
+2015-01-01,-23.11338
+2015-04-01,15.86682
+2015-07-01,-2.37356
+2015-10-01,-17.99168
+2016-01-01,-13.67905
+2016-04-01,17.33982
+2016-07-01,-2.06435
+2016-10-01,1.26420
+2017-01-01,4.46363
+2017-04-01,2.45312
+2017-07-01,2.14475
+2017-10-01,2.80489
+2018-01-01,2.76597
+2018-04-01,10.33687
+2018-07-01,0.51361
+2018-10-01,-7.48238
+2019-01-01,-10.21470
+2019-04-01,16.26832
+2019-07-01,-4.94829
+2019-10-01,-1.78148
+2020-01-01,-7.29567
+2020-04-01,-21.39773
+2020-07-01,11.18796
+2020-10-01,-1.78467
+2021-01-01,16.39871
+2021-04-01,14.80702
+2021-07-01,5.77938
+2021-10-01,5.13560
+2022-01-01,9.54050
+2022-04-01,20.69052
+2022-07-01,-9.72515
+2022-10-01,-12.16175
+2023-01-01,-5.86733
+2023-04-01,5.59716
+2023-07-01,4.64228
+2023-10-01,-10.05236
+2024-01-01,-3.21356
+2024-04-01,8.94288
+2024-07-01,-5.55704
+2024-10-01,-8.63110
diff --git a/SidLamsal-MiniProject/MiniProjectCode/DFF.csv b/SidLamsal-MiniProject/MiniProjectCode/DFF.csv
new file mode 100644
index 0000000..859a53c
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/DFF.csv
@@ -0,0 +1,283 @@
+observation_date,DFF
+1954-07-01,1.03
+1954-10-01,0.99
+1955-01-01,1.35
+1955-04-01,1.50
+1955-07-01,1.94
+1955-10-01,2.36
+1956-01-01,2.48
+1956-04-01,2.69
+1956-07-01,2.81
+1956-10-01,2.93
+1957-01-01,2.93
+1957-04-01,3.00
+1957-07-01,3.23
+1957-10-01,3.25
+1958-01-01,1.87
+1958-04-01,0.94
+1958-07-01,1.32
+1958-10-01,2.16
+1959-01-01,2.58
+1959-04-01,3.08
+1959-07-01,3.57
+1959-10-01,3.99
+1960-01-01,3.93
+1960-04-01,3.70
+1960-07-01,2.94
+1960-10-01,2.30
+1961-01-01,1.99
+1961-04-01,1.73
+1961-07-01,1.68
+1961-10-01,2.40
+1962-01-01,2.46
+1962-04-01,2.61
+1962-07-01,2.85
+1962-10-01,2.92
+1963-01-01,2.97
+1963-04-01,2.96
+1963-07-01,3.33
+1963-10-01,3.45
+1964-01-01,3.46
+1964-04-01,3.49
+1964-07-01,3.46
+1964-10-01,3.58
+1965-01-01,3.98
+1965-04-01,4.08
+1965-07-01,4.08
+1965-10-01,4.17
+1966-01-01,4.56
+1966-04-01,4.91
+1966-07-01,5.41
+1966-10-01,5.56
+1967-01-01,4.82
+1967-04-01,3.99
+1967-07-01,3.89
+1967-10-01,4.17
+1968-01-01,4.79
+1968-04-01,5.98
+1968-07-01,5.95
+1968-10-01,5.92
+1969-01-01,6.57
+1969-04-01,8.33
+1969-07-01,8.98
+1969-10-01,8.94
+1970-01-01,8.56
+1970-04-01,7.88
+1970-07-01,6.71
+1970-10-01,5.57
+1971-01-01,3.86
+1971-04-01,4.57
+1971-07-01,5.48
+1971-10-01,4.75
+1972-01-01,3.55
+1972-04-01,4.30
+1972-07-01,4.74
+1972-10-01,5.15
+1973-01-01,6.54
+1973-04-01,7.82
+1973-07-01,10.56
+1973-10-01,10.00
+1974-01-01,9.33
+1974-04-01,11.25
+1974-07-01,12.10
+1974-10-01,9.34
+1975-01-01,6.31
+1975-04-01,5.42
+1975-07-01,6.16
+1975-10-01,5.41
+1976-01-01,4.83
+1976-04-01,5.20
+1976-07-01,5.28
+1976-10-01,4.87
+1977-01-01,4.66
+1977-04-01,5.16
+1977-07-01,5.82
+1977-10-01,6.51
+1978-01-01,6.76
+1978-04-01,7.28
+1978-07-01,8.09
+1978-10-01,9.58
+1979-01-01,10.07
+1979-04-01,10.18
+1979-07-01,10.94
+1979-10-01,13.58
+1980-01-01,15.07
+1980-04-01,12.67
+1980-07-01,9.82
+1980-10-01,15.85
+1981-01-01,16.60
+1981-04-01,17.79
+1981-07-01,17.59
+1981-10-01,13.59
+1982-01-01,14.21
+1982-04-01,14.51
+1982-07-01,11.01
+1982-10-01,9.28
+1983-01-01,8.66
+1983-04-01,8.80
+1983-07-01,9.46
+1983-10-01,9.43
+1984-01-01,9.69
+1984-04-01,10.55
+1984-07-01,11.39
+1984-10-01,9.26
+1985-01-01,8.48
+1985-04-01,7.92
+1985-07-01,7.90
+1985-10-01,8.10
+1986-01-01,7.83
+1986-04-01,6.92
+1986-07-01,6.21
+1986-10-01,6.27
+1987-01-01,6.22
+1987-04-01,6.65
+1987-07-01,6.84
+1987-10-01,6.92
+1988-01-01,6.67
+1988-04-01,7.15
+1988-07-01,7.98
+1988-10-01,8.47
+1989-01-01,9.45
+1989-04-01,9.73
+1989-07-01,9.08
+1989-10-01,8.61
+1990-01-01,8.25
+1990-04-01,8.24
+1990-07-01,8.16
+1990-10-01,7.74
+1991-01-01,6.43
+1991-04-01,5.86
+1991-07-01,5.65
+1991-10-01,4.82
+1992-01-01,4.02
+1992-04-01,3.77
+1992-07-01,3.26
+1992-10-01,3.03
+1993-01-01,3.04
+1993-04-01,3.00
+1993-07-01,3.06
+1993-10-01,2.99
+1994-01-01,3.21
+1994-04-01,3.94
+1994-07-01,4.49
+1994-10-01,5.17
+1995-01-01,5.80
+1995-04-01,6.02
+1995-07-01,5.80
+1995-10-01,5.72
+1996-01-01,5.37
+1996-04-01,5.24
+1996-07-01,5.31
+1996-10-01,5.28
+1997-01-01,5.28
+1997-04-01,5.52
+1997-07-01,5.53
+1997-10-01,5.51
+1998-01-01,5.52
+1998-04-01,5.50
+1998-07-01,5.53
+1998-10-01,4.86
+1999-01-01,4.73
+1999-04-01,4.75
+1999-07-01,5.10
+1999-10-01,5.30
+2000-01-01,5.68
+2000-04-01,6.27
+2000-07-01,6.52
+2000-10-01,6.47
+2001-01-01,5.60
+2001-04-01,4.33
+2001-07-01,3.50
+2001-10-01,2.13
+2002-01-01,1.73
+2002-04-01,1.75
+2002-07-01,1.74
+2002-10-01,1.44
+2003-01-01,1.25
+2003-04-01,1.25
+2003-07-01,1.02
+2003-10-01,1.00
+2004-01-01,1.00
+2004-04-01,1.01
+2004-07-01,1.43
+2004-10-01,1.95
+2005-01-01,2.47
+2005-04-01,2.94
+2005-07-01,3.46
+2005-10-01,3.98
+2006-01-01,4.45
+2006-04-01,4.91
+2006-07-01,5.25
+2006-10-01,5.24
+2007-01-01,5.25
+2007-04-01,5.25
+2007-07-01,5.07
+2007-10-01,4.50
+2008-01-01,3.18
+2008-04-01,2.08
+2008-07-01,1.94
+2008-10-01,0.51
+2009-01-01,0.18
+2009-04-01,0.18
+2009-07-01,0.15
+2009-10-01,0.12
+2010-01-01,0.13
+2010-04-01,0.19
+2010-07-01,0.19
+2010-10-01,0.19
+2011-01-01,0.15
+2011-04-01,0.09
+2011-07-01,0.08
+2011-10-01,0.07
+2012-01-01,0.10
+2012-04-01,0.15
+2012-07-01,0.14
+2012-10-01,0.16
+2013-01-01,0.14
+2013-04-01,0.12
+2013-07-01,0.09
+2013-10-01,0.09
+2014-01-01,0.07
+2014-04-01,0.09
+2014-07-01,0.09
+2014-10-01,0.10
+2015-01-01,0.11
+2015-04-01,0.13
+2015-07-01,0.13
+2015-10-01,0.16
+2016-01-01,0.36
+2016-04-01,0.37
+2016-07-01,0.39
+2016-10-01,0.45
+2017-01-01,0.70
+2017-04-01,0.95
+2017-07-01,1.15
+2017-10-01,1.20
+2018-01-01,1.45
+2018-04-01,1.74
+2018-07-01,1.93
+2018-10-01,2.22
+2019-01-01,2.40
+2019-04-01,2.40
+2019-07-01,2.19
+2019-10-01,1.65
+2020-01-01,1.25
+2020-04-01,0.06
+2020-07-01,0.09
+2020-10-01,0.09
+2021-01-01,0.08
+2021-04-01,0.07
+2021-07-01,0.09
+2021-10-01,0.08
+2022-01-01,0.12
+2022-04-01,0.77
+2022-07-01,2.18
+2022-10-01,3.65
+2023-01-01,4.51
+2023-04-01,4.99
+2023-07-01,5.26
+2023-10-01,5.33
+2024-01-01,5.33
+2024-04-01,5.33
+2024-07-01,5.26
+2024-10-01,4.65
diff --git a/SidLamsal-MiniProject/MiniProjectCode/GDPC1_CCH.csv b/SidLamsal-MiniProject/MiniProjectCode/GDPC1_CCH.csv
new file mode 100644
index 0000000..5e29ab3
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/GDPC1_CCH.csv
@@ -0,0 +1,301 @@
+observation_date,GDPC1_CCH
+1950-01-01,3.85636
+1950-04-01,3.00531
+1950-07-01,3.79224
+1950-10-01,1.89685
+1951-01-01,1.34882
+1951-04-01,1.71730
+1951-07-01,2.03906
+1951-10-01,0.21871
+1952-01-01,1.06127
+1952-04-01,0.21407
+1952-07-01,0.71864
+1952-10-01,3.23118
+1953-01-01,1.84197
+1953-04-01,0.77012
+1953-07-01,-0.56410
+1953-10-01,-1.52529
+1954-01-01,-0.47871
+1954-04-01,0.10935
+1954-07-01,1.12336
+1954-10-01,1.93806
+1955-01-01,2.81656
+1955-04-01,1.61444
+1955-07-01,1.34178
+1955-10-01,0.59887
+1956-01-01,-0.38880
+1956-04-01,0.82318
+1956-07-01,-0.08974
+1956-10-01,1.63251
+1957-01-01,0.63823
+1957-04-01,-0.21938
+1957-07-01,0.97515
+1957-10-01,-1.03993
+1958-01-01,-2.63019
+1958-04-01,0.65475
+1958-07-01,2.28676
+1958-10-01,2.31131
+1959-01-01,1.90024
+1959-04-01,2.22842
+1959-07-01,0.06970
+1959-10-01,0.28458
+1960-01-01,2.22372
+1960-04-01,-0.53981
+1960-07-01,0.48873
+1960-10-01,-1.29143
+1961-01-01,0.67275
+1961-04-01,1.68360
+1961-07-01,1.90216
+1961-10-01,1.94268
+1962-01-01,1.76794
+1962-04-01,0.90069
+1962-07-01,1.22207
+1962-10-01,0.32886
+1963-01-01,1.08617
+1963-04-01,1.11616
+1963-07-01,2.17501
+1963-10-01,0.65376
+1964-01-01,2.08679
+1964-04-01,1.08318
+1964-07-01,1.55052
+1964-10-01,0.30871
+1965-01-01,2.39109
+1965-04-01,1.25556
+1965-07-01,2.19881
+1965-10-01,2.27776
+1966-01-01,2.40469
+1966-04-01,0.34089
+1966-07-01,0.84327
+1966-10-01,0.81706
+1967-01-01,0.88189
+1967-04-01,0.06133
+1967-07-01,0.94163
+1967-10-01,0.75103
+1968-01-01,2.01876
+1968-04-01,1.65658
+1968-07-01,0.77153
+1968-10-01,0.39200
+1969-01-01,1.55232
+1969-04-01,0.30289
+1969-07-01,0.65778
+1969-10-01,-0.48940
+1970-01-01,-0.14900
+1970-04-01,0.14162
+1970-07-01,0.91725
+1970-10-01,-1.07736
+1971-01-01,2.67992
+1971-04-01,0.53936
+1971-07-01,0.81908
+1971-10-01,0.23459
+1972-01-01,1.82054
+1972-04-01,2.24392
+1972-07-01,0.93966
+1972-10-01,1.66057
+1973-01-01,2.44481
+1973-04-01,1.08286
+1973-07-01,-0.52723
+1973-10-01,0.94475
+1974-01-01,-0.86342
+1974-04-01,0.23741
+1974-07-01,-0.94977
+1974-10-01,-0.38916
+1975-01-01,-1.22511
+1975-04-01,0.71216
+1975-07-01,1.69755
+1975-10-01,1.33810
+1976-01-01,2.22454
+1976-04-01,0.73070
+1976-07-01,0.54591
+1976-10-01,0.72001
+1977-01-01,1.17925
+1977-04-01,1.92331
+1977-07-01,1.78710
+1977-10-01,0.00199
+1978-01-01,0.31933
+1978-04-01,3.79196
+1978-07-01,1.00072
+1978-10-01,1.33517
+1979-01-01,0.17943
+1979-04-01,0.10669
+1979-07-01,0.74006
+1979-10-01,0.24973
+1980-01-01,0.31408
+1980-04-01,-2.08196
+1980-07-01,-0.11893
+1980-10-01,1.84775
+1981-01-01,1.94047
+1981-04-01,-0.74384
+1981-07-01,1.19039
+1981-10-01,-1.09558
+1982-01-01,-1.56584
+1982-04-01,0.45514
+1982-07-01,-0.38300
+1982-10-01,0.04000
+1983-01-01,1.30918
+1983-04-01,2.25002
+1983-07-01,1.97924
+1983-10-01,2.06472
+1984-01-01,1.93593
+1984-04-01,1.71301
+1984-07-01,0.95939
+1984-10-01,0.81742
+1985-01-01,0.96431
+1985-04-01,0.87662
+1985-07-01,1.51573
+1985-10-01,0.74070
+1986-01-01,0.92942
+1986-04-01,0.44929
+1986-07-01,0.95212
+1986-10-01,0.53496
+1987-01-01,0.73911
+1987-04-01,1.07241
+1987-07-01,0.86344
+1987-10-01,1.70238
+1988-01-01,0.51555
+1988-04-01,1.30547
+1988-07-01,0.58426
+1988-10-01,1.32366
+1989-01-01,1.01126
+1989-04-01,0.76020
+1989-07-01,0.73801
+1989-10-01,0.19679
+1990-01-01,1.08695
+1990-04-01,0.36231
+1990-07-01,0.06656
+1990-10-01,-0.91457
+1991-01-01,-0.46904
+1991-04-01,0.77667
+1991-07-01,0.50409
+1991-10-01,0.34794
+1992-01-01,1.19014
+1992-04-01,1.07847
+1992-07-01,0.98326
+1992-10-01,1.03746
+1993-01-01,0.16680
+1993-04-01,0.58048
+1993-07-01,0.47602
+1993-10-01,1.35098
+1994-01-01,0.96569
+1994-04-01,1.34608
+1994-07-01,0.58288
+1994-10-01,1.13906
+1995-01-01,0.35415
+1995-04-01,0.29788
+1995-07-01,0.84713
+1995-10-01,0.67679
+1996-01-01,0.74626
+1996-04-01,1.65419
+1996-07-01,0.89303
+1996-10-01,1.03302
+1997-01-01,0.64337
+1997-04-01,1.65151
+1997-07-01,1.24084
+1997-10-01,0.85024
+1998-01-01,0.99875
+1998-04-01,0.92143
+1998-07-01,1.25108
+1998-10-01,1.59639
+1999-01-01,0.93505
+1999-04-01,0.83128
+1999-07-01,1.31717
+1999-10-01,1.62735
+2000-01-01,0.36214
+2000-04-01,1.80490
+2000-07-01,0.10188
+2000-10-01,0.59526
+2001-01-01,-0.32834
+2001-04-01,0.62256
+2001-07-01,-0.40144
+2001-10-01,0.27440
+2002-01-01,0.83288
+2002-04-01,0.61084
+2002-07-01,0.40569
+2002-10-01,0.12353
+2003-01-01,0.52526
+2003-04-01,0.88172
+2003-07-01,1.64952
+2003-10-01,1.15404
+2004-01-01,0.56505
+2004-04-01,0.77196
+2004-07-01,0.94412
+2004-10-01,1.01504
+2005-01-01,1.10326
+2005-04-01,0.49142
+2005-07-01,0.78076
+2005-10-01,0.55398
+2006-01-01,1.33641
+2006-04-01,0.25842
+2006-07-01,0.14984
+2006-10-01,0.85578
+2007-01-01,0.30038
+2007-04-01,0.60990
+2007-07-01,0.57437
+2007-10-01,0.62627
+2008-01-01,-0.42768
+2008-04-01,0.59366
+2008-07-01,-0.52664
+2008-10-01,-2.21334
+2009-01-01,-1.14136
+2009-04-01,-0.17881
+2009-07-01,0.35058
+2009-10-01,1.07511
+2010-01-01,0.48333
+2010-04-01,0.96293
+2010-07-01,0.76813
+2010-10-01,0.52374
+2011-01-01,-0.23749
+2011-04-01,0.67430
+2011-07-01,-0.02232
+2011-10-01,1.11679
+2012-01-01,0.83509
+2012-04-01,0.44534
+2012-07-01,0.14392
+2012-10-01,0.11557
+2013-01-01,0.98173
+2013-04-01,0.26728
+2013-07-01,0.84779
+2013-10-01,0.86796
+2014-01-01,-0.34569
+2014-04-01,1.28357
+2014-07-01,1.20806
+2014-10-01,0.50446
+2015-01-01,0.89645
+2015-04-01,0.61749
+2015-07-01,0.39945
+2015-10-01,0.18431
+2016-01-01,0.57785
+2016-04-01,0.32061
+2016-07-01,0.70689
+2016-10-01,0.55277
+2017-01-01,0.48571
+2017-04-01,0.55831
+2017-07-01,0.78543
+2017-10-01,1.12074
+2018-01-01,0.81012
+2018-04-01,0.52942
+2018-07-01,0.62176
+2018-10-01,0.14154
+2019-01-01,0.62238
+2019-04-01,0.83168
+2019-07-01,1.16321
+2019-10-01,0.67956
+2020-01-01,-1.40223
+2020-04-01,-8.23926
+2020-07-01,7.53878
+2020-10-01,1.07888
+2021-01-01,1.37075
+2021-04-01,1.55785
+2021-07-01,0.84923
+2021-10-01,1.78709
+2022-01-01,-0.25779
+2022-04-01,0.07015
+2022-07-01,0.67095
+2022-10-01,0.82442
+2023-01-01,0.68966
+2023-04-01,0.60514
+2023-07-01,1.06582
+2023-10-01,0.78558
+2024-01-01,0.40399
+2024-04-01,0.73626
+2024-07-01,0.75664
+2024-10-01,0.55662
diff --git a/SidLamsal-MiniProject/MiniProjectCode/GDPC1_PC1.csv b/SidLamsal-MiniProject/MiniProjectCode/GDPC1_PC1.csv
deleted file mode 100644
index 35a6007..0000000
--- a/SidLamsal-MiniProject/MiniProjectCode/GDPC1_PC1.csv
+++ /dev/null
@@ -1,301 +0,0 @@
-observation_date,GDPC1_PC1
-1950-01-01,3.77286
-1950-04-01,7.30336
-1950-07-01,10.31016
-1950-10-01,13.37239
-1951-01-01,10.56488
-1951-04-01,9.14992
-1951-07-01,7.25300
-1951-10-01,5.46816
-1952-01-01,5.16533
-1952-04-01,3.59627
-1952-07-01,2.23736
-1952-10-01,5.36408
-1953-01-01,6.18988
-1953-04-01,6.78199
-1953-07-01,5.42099
-1953-10-01,0.52406
-1954-01-01,-1.78193
-1954-04-01,-2.42878
-1954-07-01,-0.76833
-1954-10-01,2.72862
-1955-01-01,6.17020
-1955-04-01,7.78024
-1955-07-01,8.01592
-1955-10-01,6.57902
-1956-01-01,3.21695
-1956-04-01,2.40346
-1956-07-01,0.94797
-1956-10-01,1.99683
-1957-01-01,3.04976
-1957-04-01,1.98098
-1957-07-01,3.07278
-1957-10-01,0.35470
-1958-01-01,-2.87229
-1958-04-01,-2.01954
-1958-07-01,-0.72596
-1958-10-01,2.65733
-1959-01-01,7.41511
-1959-04-01,9.11883
-1959-07-01,6.72622
-1959-10-01,4.58494
-1960-01-01,4.92380
-1960-04-01,2.05910
-1960-07-01,2.48766
-1960-10-01,0.88510
-1961-01-01,-0.66752
-1961-04-01,1.56578
-1961-07-01,3.01153
-1961-10-01,6.39750
-1962-01-01,7.56916
-1962-04-01,6.73027
-1962-07-01,6.00687
-1962-10-01,4.30985
-1963-01-01,3.60111
-1963-04-01,3.82459
-1963-07-01,4.81870
-1963-10-01,5.15981
-1964-01-01,6.21734
-1964-04-01,6.18231
-1964-07-01,5.52129
-1964-10-01,5.15781
-1965-01-01,5.47830
-1965-04-01,5.66027
-1965-07-01,6.34748
-1965-10-01,8.46227
-1966-01-01,8.47702
-1966-04-01,7.48934
-1966-07-01,6.04211
-1966-10-01,4.50440
-1967-01-01,2.92507
-1967-04-01,2.63774
-1967-07-01,2.73874
-1967-10-01,2.67093
-1968-01-01,3.84482
-1968-04-01,5.51468
-1968-07-01,5.33535
-1968-10-01,4.95786
-1969-01-01,4.46943
-1969-04-01,3.06478
-1969-07-01,2.94761
-1969-10-01,2.04421
-1970-01-01,0.32279
-1970-04-01,0.16112
-1970-07-01,0.42134
-1970-10-01,-0.16735
-1971-01-01,2.69716
-1971-04-01,3.10644
-1971-07-01,3.00528
-1971-10-01,4.36555
-1972-01-01,3.47251
-1972-04-01,5.25138
-1972-07-01,5.37836
-1972-10-01,6.89181
-1973-01-01,7.56118
-1973-04-01,6.31955
-1973-07-01,4.77135
-1973-10-01,4.02406
-1974-01-01,0.63900
-1974-04-01,-0.20826
-1974-07-01,-0.62904
-1974-10-01,-1.94576
-1975-01-01,-2.29977
-1975-04-01,-1.83484
-1975-07-01,0.79862
-1975-10-01,2.55480
-1976-01-01,6.15430
-1976-04-01,6.17398
-1976-07-01,4.95826
-1976-10-01,4.31152
-1977-01-01,3.22684
-1977-04-01,4.46530
-1977-07-01,5.76999
-1977-10-01,5.01327
-1978-01-01,4.11411
-1978-04-01,6.07793
-1978-07-01,5.24703
-1978-10-01,6.65956
-1979-01-01,6.51045
-1979-04-01,2.65670
-1979-07-01,2.38945
-1979-10-01,1.28409
-1980-01-01,1.42055
-1980-04-01,-0.77507
-1980-07-01,-1.62375
-1980-10-01,-0.03905
-1981-01-01,1.60000
-1981-04-01,2.96867
-1981-07-01,4.32572
-1981-10-01,1.29983
-1982-01-01,-2.19052
-1982-04-01,-1.01075
-1982-07-01,-2.55604
-1982-10-01,-1.44318
-1983-01-01,1.43147
-1983-04-01,3.26848
-1983-07-01,5.73697
-1983-10-01,7.89966
-1984-01-01,8.57805
-1984-04-01,7.99653
-1984-07-01,6.90073
-1984-10-01,5.57564
-1985-01-01,4.55482
-1985-04-01,3.68399
-1985-07-01,4.26242
-1985-10-01,4.18246
-1986-01-01,4.14611
-1986-04-01,3.70200
-1986-07-01,3.11918
-1986-10-01,2.90724
-1987-01-01,2.71158
-1987-04-01,3.35360
-1987-07-01,3.26199
-1987-10-01,4.47456
-1988-01-01,4.24126
-1988-04-01,4.48449
-1988-07-01,4.19320
-1988-10-01,3.79934
-1989-01-01,4.31516
-1989-04-01,3.74791
-1989-07-01,3.90754
-1989-10-01,2.74321
-1990-01-01,2.82101
-1990-04-01,2.41270
-1990-07-01,1.72736
-1990-10-01,0.60306
-1991-01-01,-0.95020
-1991-04-01,-0.53893
-1991-07-01,-0.10281
-1991-10-01,1.16640
-1992-01-01,2.85894
-1992-04-01,3.16984
-1992-07-01,3.66539
-1992-10-01,4.38265
-1993-01-01,3.31991
-1993-04-01,2.80667
-1993-07-01,2.28651
-1993-10-01,2.60771
-1994-01-01,3.43071
-1994-04-01,4.22561
-1994-07-01,4.33705
-1994-10-01,4.11617
-1995-01-01,3.48141
-1995-04-01,2.40238
-1995-07-01,2.67333
-1995-10-01,2.19979
-1996-01-01,2.60131
-1996-04-01,4.00238
-1996-07-01,4.05013
-1996-10-01,4.42145
-1997-01-01,4.31407
-1997-04-01,4.31127
-1997-07-01,4.67470
-1997-10-01,4.48355
-1998-01-01,4.85553
-1998-04-01,4.09279
-1998-07-01,4.10345
-1998-10-01,4.88313
-1999-01-01,4.81634
-1999-04-01,4.72189
-1999-07-01,4.79112
-1999-10-01,4.82357
-2000-01-01,4.22474
-2000-04-01,5.24446
-2000-07-01,3.97317
-2000-10-01,2.90559
-2001-01-01,2.19751
-2001-04-01,0.99630
-2001-07-01,0.48924
-2001-10-01,0.16732
-2002-01-01,1.33726
-2002-04-01,1.32538
-2002-07-01,2.14652
-2002-10-01,1.99252
-2003-01-01,1.67926
-2003-04-01,1.95507
-2003-07-01,3.23114
-2003-10-01,4.30044
-2004-01-01,4.34195
-2004-04-01,4.22749
-2004-07-01,3.49486
-2004-10-01,3.35110
-2005-01-01,3.90884
-2005-04-01,3.61774
-2005-07-01,3.44860
-2005-10-01,2.97274
-2006-01-01,3.21311
-2006-04-01,2.97290
-2006-07-01,2.32528
-2006-10-01,2.63456
-2007-01-01,1.57672
-2007-04-01,1.93437
-2007-07-01,2.36804
-2007-10-01,2.13336
-2008-01-01,1.39247
-2008-04-01,1.37601
-2008-07-01,0.26597
-2008-10-01,-2.54115
-2009-01-01,-3.23423
-2009-04-01,-3.97884
-2009-07-01,-3.13282
-2009-10-01,0.10557
-2010-01-01,1.74527
-2010-04-01,2.91360
-2010-07-01,3.34421
-2010-10-01,2.77596
-2011-01-01,2.03780
-2011-04-01,1.74371
-2011-07-01,0.94265
-2011-10-01,1.54308
-2012-01-01,2.63807
-2012-04-01,2.40334
-2012-07-01,2.57371
-2012-10-01,1.55185
-2013-01-01,1.70087
-2013-04-01,1.51994
-2013-07-01,2.23702
-2013-10-01,3.00914
-2014-01-01,1.65082
-2014-04-01,2.68915
-2014-07-01,3.05978
-2014-10-01,2.68584
-2015-01-01,3.96930
-2015-04-01,3.27909
-2015-07-01,2.44732
-2015-10-01,2.11986
-2016-01-01,1.79502
-2016-04-01,1.49325
-2016-07-01,1.80576
-2016-10-01,2.18157
-2017-01-01,2.08746
-2017-04-01,2.33041
-2017-07-01,2.41082
-2017-10-01,2.99414
-2018-01-01,3.32881
-2018-04-01,3.29896
-2018-07-01,3.13003
-2018-10-01,2.12511
-2019-01-01,1.93356
-2019-04-01,2.24213
-2019-07-01,2.79722
-2019-10-01,3.35178
-2020-01-01,1.28035
-2020-04-01,-7.50237
-2020-07-01,-1.41306
-2020-10-01,-1.01860
-2021-01-01,1.76454
-2021-04-01,12.23926
-2021-07-01,4.97658
-2021-10-01,5.72268
-2022-01-01,4.01489
-2022-04-01,2.47892
-2022-07-01,2.29639
-2022-10-01,1.31633
-2023-01-01,2.28081
-2023-04-01,2.82946
-2023-07-01,3.23631
-2023-10-01,3.19622
-2024-01-01,2.90183
-2024-04-01,3.03685
-2024-07-01,2.71877
-2024-10-01,2.48386
diff --git a/SidLamsal-MiniProject/MiniProjectCode/HstDebt_19490101_20240930.csv b/SidLamsal-MiniProject/MiniProjectCode/HstDebt_19490101_20240930.csv
new file mode 100644
index 0000000..826d04c
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/HstDebt_19490101_20240930.csv
@@ -0,0 +1,77 @@
+Record Date,Debt Outstanding Amount
+2024-09-30,35464673929171.69
+2023-09-30,33167334044723.16
+2022-09-30,30928911613306.73
+2021-09-30,28428918570048.68
+2020-09-30,26945391194615.15
+2019-09-30,22719401753433.78
+2018-09-30,21516058183180.23
+2017-09-30,20244900016053.51
+2016-09-30,19573444713936.79
+2015-09-30,18150617666484.33
+2014-09-30,17824071380733.82
+2013-09-30,16738183526697.32
+2012-09-30,16066241407385.89
+2011-09-30,14790340328557.15
+2010-09-30,13561623030891.79
+2009-09-30,11909829003511.75
+2008-09-30,10024724896912.49
+2007-09-30,9007653372262.48
+2006-09-30,8506973899215.23
+2005-09-30,7932709661723.50
+2004-09-30,7379052696330.32
+2003-09-30,6783231062743.62
+2002-09-30,6228235965597.16
+2001-09-30,5807463412200.06
+2000-09-30,5674178209886.86
+1999-09-30,5656270901615.43
+1998-09-30,5526193008897.62
+1997-09-30,5413146011397.34
+1996-09-30,5224810939135.73
+1995-09-29,4973982900709.39
+1994-09-30,4692749910013.32
+1993-09-30,4411488883139.38
+1992-09-30,4064620655521.66
+1991-09-30,3665303351697.03
+1990-09-28,3233313451777.25
+1989-09-29,2857430960187.32
+1988-09-30,2602337712041.16
+1987-09-30,2350276890953.00
+1986-09-30,2125302616658.42
+1985-09-30,1823103000000.00
+1984-09-30,1572266000000.00
+1983-09-30,1377210000000.00
+1982-09-30,1142034000000.00
+1981-09-30,997855000000.00
+1980-09-30,907701000000.00
+1979-09-30,826519000000.00
+1978-09-30,771544000000.00
+1977-09-30,698840000000.00
+1976-06-30,620433000000.00
+1975-06-30,533189000000.00
+1974-06-30,475059815731.55
+1973-06-30,458141605312.09
+1972-06-30,427260460940.50
+1971-06-30,398129744455.54
+1970-06-30,370918706949.93
+1969-06-30,353720253841.41
+1968-06-30,347578406425.88
+1967-06-30,326220937794.54
+1966-06-30,319907087795.48
+1965-06-30,317273898983.64
+1964-06-30,311712899257.30
+1963-06-30,305859632996.41
+1962-06-30,298200822720.87
+1961-06-30,288970938610.05
+1960-06-30,286330760848.37
+1959-06-30,284705907078.22
+1958-06-30,276343217745.81
+1957-06-30,270527171896.43
+1956-06-30,272750813649.32
+1955-06-30,274374222802.62
+1954-06-30,271259599108.46
+1953-06-30,266071061638.57
+1952-06-30,259105178785.43
+1951-06-29,255221976814.93
+1950-06-30,257357352351.04
+1949-06-30,252770359860.33
\ No newline at end of file
diff --git a/SidLamsal-MiniProject/MiniProjectCode/MiniProjectNotebook.ipynb b/SidLamsal-MiniProject/MiniProjectCode/MiniProjectNotebook.ipynb
new file mode 100644
index 0000000..d46aed8
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/MiniProjectNotebook.ipynb
@@ -0,0 +1,2599 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 43,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import pandas as pd\n",
+ "import numpy as np"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 44,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ "Empty DataFrame\n",
+ "Columns: []\n",
+ "Index: []"
+ ]
+ },
+ "execution_count": 44,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Create a new DataFrame with the specified economic columns\n",
+ "economic_df = pd.DataFrame()\n",
+ "\n",
+ "# Display the empty DataFrame\n",
+ "economic_df.head()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 45,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession\n",
+ "0 1950 1 3.85636 False\n",
+ "1 1950 2 3.00531 False\n",
+ "2 1950 3 3.79224 False\n",
+ "3 1950 4 1.89685 False\n",
+ "4 1951 1 1.34882 False"
+ ]
+ },
+ "execution_count": 45,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for GDP growth\n",
+ "gdp_growth_df = pd.read_csv('GDPC1_CCH.csv')\n",
+ "\n",
+ "# Extract Year and Quarter from the observation_date\n",
+ "gdp_growth_df['Year'] = pd.to_datetime(gdp_growth_df['observation_date']).dt.year\n",
+ "gdp_growth_df['Quarter'] = pd.to_datetime(gdp_growth_df['observation_date']).dt.quarter\n",
+ "\n",
+ "# Fill in the Year, Quarter, and GDP_Growth columns in the economic_df DataFrame\n",
+ "economic_df['Year'] = gdp_growth_df['Year']\n",
+ "economic_df['Quarter'] = gdp_growth_df['Quarter']\n",
+ "economic_df['GDP_Growth'] = gdp_growth_df['GDPC1_CCH']\n",
+ "economic_df['Recession'] = economic_df['GDP_Growth'] < 0\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head()\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 46,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ " 6.4 | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ " 5.6 | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ " 4.6 | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ " 3.5 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate\n",
+ "0 1950 1 3.85636 False 6.4\n",
+ "1 1950 2 3.00531 False 5.6\n",
+ "2 1950 3 3.79224 False 4.6\n",
+ "3 1950 4 1.89685 False 4.2\n",
+ "4 1951 1 1.34882 False 3.5"
+ ]
+ },
+ "execution_count": 46,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for Unemployment Rate\n",
+ "unemployment_df = pd.read_csv('UNRATE.csv')\n",
+ "\n",
+ "# Extract Year and Quarter from the observation_date\n",
+ "unemployment_df['Year'] = pd.to_datetime(unemployment_df['observation_date']).dt.year\n",
+ "unemployment_df['Quarter'] = pd.to_datetime(unemployment_df['observation_date']).dt.quarter\n",
+ "unemployment_df.rename(columns={'UNRATE': 'Unemployment_Rate'}, inplace=True)\n",
+ "\n",
+ "# Merge the unemployment data into the economic_df DataFrame\n",
+ "economic_df = economic_df.merge(unemployment_df[['Year', 'Quarter', 'Unemployment_Rate']], on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head()\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 47,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ " 6.4 | \n",
+ " -1.48963 | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ " 5.6 | \n",
+ " -0.62718 | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ " 4.6 | \n",
+ " 2.05200 | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 4.36743 | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ " 3.5 | \n",
+ " 8.94573 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate\n",
+ "0 1950 1 3.85636 False 6.4 -1.48963\n",
+ "1 1950 2 3.00531 False 5.6 -0.62718\n",
+ "2 1950 3 3.79224 False 4.6 2.05200\n",
+ "3 1950 4 1.89685 False 4.2 4.36743\n",
+ "4 1951 1 1.34882 False 3.5 8.94573"
+ ]
+ },
+ "execution_count": 47,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for Inflation Rate\n",
+ "inflation_df = pd.read_csv('CPIAUCSL_PC1.csv')\n",
+ "\n",
+ "# Extract Year and Quarter from the observation_date\n",
+ "inflation_df['Year'] = pd.to_datetime(inflation_df['observation_date']).dt.year\n",
+ "inflation_df['Quarter'] = pd.to_datetime(inflation_df['observation_date']).dt.quarter\n",
+ "inflation_df.rename(columns={'CPIAUCSL_PC1': 'Inflation_Rate'}, inplace=True)\n",
+ "\n",
+ "# Merge the inflation data into the economic_df DataFrame\n",
+ "economic_df = economic_df.merge(inflation_df[['Year', 'Quarter', 'Inflation_Rate']], on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 48,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ " 6.4 | \n",
+ " -1.48963 | \n",
+ " -2.65268 | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ " 5.6 | \n",
+ " -0.62718 | \n",
+ " 1.06953 | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ " 4.6 | \n",
+ " 2.05200 | \n",
+ " 1.58315 | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 4.36743 | \n",
+ " 1.55847 | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ " 3.5 | \n",
+ " 8.94573 | \n",
+ " 0.51414 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "0 1950 1 3.85636 False 6.4 -1.48963 \n",
+ "1 1950 2 3.00531 False 5.6 -0.62718 \n",
+ "2 1950 3 3.79224 False 4.6 2.05200 \n",
+ "3 1950 4 1.89685 False 4.2 4.36743 \n",
+ "4 1951 1 1.34882 False 3.5 8.94573 \n",
+ "\n",
+ " Gas_Prices \n",
+ "0 -2.65268 \n",
+ "1 1.06953 \n",
+ "2 1.58315 \n",
+ "3 1.55847 \n",
+ "4 0.51414 "
+ ]
+ },
+ "execution_count": 48,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for Gas Prices\n",
+ "gas_prices_df = pd.read_csv('CUUR0000SETB01_CCH.csv')\n",
+ "\n",
+ "# Extract Year and Quarter from the observation_date\n",
+ "gas_prices_df['Year'] = pd.to_datetime(gas_prices_df['observation_date']).dt.year\n",
+ "gas_prices_df['Quarter'] = pd.to_datetime(gas_prices_df['observation_date']).dt.quarter\n",
+ "gas_prices_df.rename(columns={'CUUR0000SETB01_CCH': 'Gas_Prices'}, inplace=True)\n",
+ "\n",
+ "# Merge the gas prices data into the economic_df DataFrame\n",
+ "economic_df = economic_df.merge(gas_prices_df[['Year', 'Quarter', 'Gas_Prices']], on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 49,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ " SP500_Return_Rate | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 295 | \n",
+ " 2023 | \n",
+ " 4 | \n",
+ " 0.78558 | \n",
+ " False | \n",
+ " 3.8 | \n",
+ " 3.23615 | \n",
+ " -10.05236 | \n",
+ " 13.219812 | \n",
+ "
\n",
+ " \n",
+ " | 296 | \n",
+ " 2024 | \n",
+ " 1 | \n",
+ " 0.40399 | \n",
+ " False | \n",
+ " 3.8 | \n",
+ " 3.24919 | \n",
+ " -3.21356 | \n",
+ " 6.530821 | \n",
+ "
\n",
+ " \n",
+ " | 297 | \n",
+ " 2024 | \n",
+ " 2 | \n",
+ " 0.73626 | \n",
+ " False | \n",
+ " 4.0 | \n",
+ " 3.19431 | \n",
+ " 8.94288 | \n",
+ " 8.686055 | \n",
+ "
\n",
+ " \n",
+ " | 298 | \n",
+ " 2024 | \n",
+ " 3 | \n",
+ " 0.75664 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 2.64001 | \n",
+ " -5.55704 | \n",
+ " 4.927910 | \n",
+ "
\n",
+ " \n",
+ " | 299 | \n",
+ " 2024 | \n",
+ " 4 | \n",
+ " 0.55662 | \n",
+ " False | \n",
+ " 4.1 | \n",
+ " 2.73538 | \n",
+ " -8.63110 | \n",
+ " 4.400000 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "295 2023 4 0.78558 False 3.8 3.23615 \n",
+ "296 2024 1 0.40399 False 3.8 3.24919 \n",
+ "297 2024 2 0.73626 False 4.0 3.19431 \n",
+ "298 2024 3 0.75664 False 4.2 2.64001 \n",
+ "299 2024 4 0.55662 False 4.1 2.73538 \n",
+ "\n",
+ " Gas_Prices SP500_Return_Rate \n",
+ "295 -10.05236 13.219812 \n",
+ "296 -3.21356 6.530821 \n",
+ "297 8.94288 8.686055 \n",
+ "298 -5.55704 4.927910 \n",
+ "299 -8.63110 4.400000 "
+ ]
+ },
+ "execution_count": 49,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for SNP500 data\n",
+ "snp500_df = pd.read_csv('SNP500.csv')\n",
+ "\n",
+ "# Calculate the Quarter from the Month\n",
+ "snp500_df['Quarter'] = snp500_df['Month'].apply(lambda x: (x - 1) // 3 + 1)\n",
+ "\n",
+ "# Convert 'Return (%)' to float\n",
+ "snp500_df['Return (%)'] = snp500_df['Return (%)'].str.replace('%', '').astype(float) / 100\n",
+ "\n",
+ "# Calculate the compounded SNP500 return for each quarter\n",
+ "snp500_df['Compounded_Return'] = snp500_df['Return (%)'] + 1\n",
+ "quarterly_compounded_snp500 = snp500_df.groupby(['Year', 'Quarter'])['Compounded_Return'].prod().reset_index()\n",
+ "quarterly_compounded_snp500['SP500_Return_Rate'] = (quarterly_compounded_snp500['Compounded_Return'] - 1) * 100\n",
+ "\n",
+ "# Drop the intermediate 'Compounded_Return' column\n",
+ "quarterly_compounded_snp500.drop(columns=['Compounded_Return'], inplace=True)\n",
+ "\n",
+ "# Merge the SNP500 data into the economic_df DataFrame\n",
+ "economic_df = economic_df.merge(quarterly_compounded_snp500, on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.tail()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 50,
+ "metadata": {
+ "vscode": {
+ "languageId": "ruby"
+ }
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ " SP500_Return_Rate | \n",
+ " Consumer_Confidence | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ " 6.4 | \n",
+ " -1.48963 | \n",
+ " -2.65268 | \n",
+ " 7.458165 | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ " 5.6 | \n",
+ " -0.62718 | \n",
+ " 1.06953 | \n",
+ " -0.979123 | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ " 4.6 | \n",
+ " 2.05200 | \n",
+ " 1.58315 | \n",
+ " 16.263185 | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 4.36743 | \n",
+ " 1.55847 | \n",
+ " 8.626437 | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ " 3.5 | \n",
+ " 8.94573 | \n",
+ " 0.51414 | \n",
+ " 5.142996 | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "0 1950 1 3.85636 False 6.4 -1.48963 \n",
+ "1 1950 2 3.00531 False 5.6 -0.62718 \n",
+ "2 1950 3 3.79224 False 4.6 2.05200 \n",
+ "3 1950 4 1.89685 False 4.2 4.36743 \n",
+ "4 1951 1 1.34882 False 3.5 8.94573 \n",
+ "\n",
+ " Gas_Prices SP500_Return_Rate Consumer_Confidence \n",
+ "0 -2.65268 7.458165 NaN \n",
+ "1 1.06953 -0.979123 NaN \n",
+ "2 1.58315 16.263185 NaN \n",
+ "3 1.55847 8.626437 NaN \n",
+ "4 0.51414 5.142996 NaN "
+ ]
+ },
+ "execution_count": 50,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for Consumer_Confidence pct change Rate\n",
+ "consumer_confidence_df = pd.read_csv('UMCSENT.csv')\n",
+ "\n",
+ "# Extract Year and Quarter from the observation_date\n",
+ "consumer_confidence_df['Year'] = pd.to_datetime(consumer_confidence_df['observation_date']).dt.year\n",
+ "consumer_confidence_df['Quarter'] = pd.to_datetime(consumer_confidence_df['observation_date']).dt.quarter\n",
+ "consumer_confidence_df.rename(columns={'UMCSENT': 'Consumer_Confidence'}, inplace=True)\n",
+ "\n",
+ "# Merge the consumer confidence data into the economic_df DataFrame\n",
+ "economic_df = economic_df.merge(consumer_confidence_df[['Year', 'Quarter', 'Consumer_Confidence']], on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 51,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ " SP500_Return_Rate | \n",
+ " Consumer_Confidence | \n",
+ " Federal_Funds_Rate | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ " 6.4 | \n",
+ " -1.48963 | \n",
+ " -2.65268 | \n",
+ " 7.458165 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ " 5.6 | \n",
+ " -0.62718 | \n",
+ " 1.06953 | \n",
+ " -0.979123 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ " 4.6 | \n",
+ " 2.05200 | \n",
+ " 1.58315 | \n",
+ " 16.263185 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 4.36743 | \n",
+ " 1.55847 | \n",
+ " 8.626437 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ " 3.5 | \n",
+ " 8.94573 | \n",
+ " 0.51414 | \n",
+ " 5.142996 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "0 1950 1 3.85636 False 6.4 -1.48963 \n",
+ "1 1950 2 3.00531 False 5.6 -0.62718 \n",
+ "2 1950 3 3.79224 False 4.6 2.05200 \n",
+ "3 1950 4 1.89685 False 4.2 4.36743 \n",
+ "4 1951 1 1.34882 False 3.5 8.94573 \n",
+ "\n",
+ " Gas_Prices SP500_Return_Rate Consumer_Confidence Federal_Funds_Rate \n",
+ "0 -2.65268 7.458165 NaN NaN \n",
+ "1 1.06953 -0.979123 NaN NaN \n",
+ "2 1.58315 16.263185 NaN NaN \n",
+ "3 1.55847 8.626437 NaN NaN \n",
+ "4 0.51414 5.142996 NaN NaN "
+ ]
+ },
+ "execution_count": 51,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for Federal Funds Rate\n",
+ "federal_funds_df = pd.read_csv('DFF.csv')\n",
+ "\n",
+ "# Extract Year and Quarter from the observation_date\n",
+ "federal_funds_df['Year'] = pd.to_datetime(federal_funds_df['observation_date']).dt.year\n",
+ "federal_funds_df['Quarter'] = pd.to_datetime(federal_funds_df['observation_date']).dt.quarter\n",
+ "federal_funds_df.rename(columns={'DFF': 'Federal_Funds_Rate'}, inplace=True)\n",
+ "\n",
+ "# Merge the federal funds rate data into the economic_df DataFrame\n",
+ "economic_df = economic_df.merge(federal_funds_df[['Year', 'Quarter', 'Federal_Funds_Rate']], on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 52,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ " SP500_Return_Rate | \n",
+ " Consumer_Confidence | \n",
+ " Federal_Funds_Rate | \n",
+ " Debt_Percent_Change | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ " 6.4 | \n",
+ " -1.48963 | \n",
+ " -2.65268 | \n",
+ " 7.458165 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ " 5.6 | \n",
+ " -0.62718 | \n",
+ " 1.06953 | \n",
+ " -0.979123 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ " 4.6 | \n",
+ " 2.05200 | \n",
+ " 1.58315 | \n",
+ " 16.263185 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 4.36743 | \n",
+ " 1.55847 | \n",
+ " 8.626437 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ " 3.5 | \n",
+ " 8.94573 | \n",
+ " 0.51414 | \n",
+ " 5.142996 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "0 1950 1 3.85636 False 6.4 -1.48963 \n",
+ "1 1950 2 3.00531 False 5.6 -0.62718 \n",
+ "2 1950 3 3.79224 False 4.6 2.05200 \n",
+ "3 1950 4 1.89685 False 4.2 4.36743 \n",
+ "4 1951 1 1.34882 False 3.5 8.94573 \n",
+ "\n",
+ " Gas_Prices SP500_Return_Rate Consumer_Confidence Federal_Funds_Rate \\\n",
+ "0 -2.65268 7.458165 NaN NaN \n",
+ "1 1.06953 -0.979123 NaN NaN \n",
+ "2 1.58315 16.263185 NaN NaN \n",
+ "3 1.55847 8.626437 NaN NaN \n",
+ "4 0.51414 5.142996 NaN NaN \n",
+ "\n",
+ " Debt_Percent_Change \n",
+ "0 0.450617 \n",
+ "1 0.450617 \n",
+ "2 0.450617 \n",
+ "3 0.450617 \n",
+ "4 -0.208081 "
+ ]
+ },
+ "execution_count": 52,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for US debt\n",
+ "us_debt_df = pd.read_csv('HstDebt_19490101_20240930.csv')\n",
+ "\n",
+ "# Extract Year from the Record Date\n",
+ "us_debt_df['Record Date'] = pd.to_datetime(us_debt_df['Record Date']).dt.year\n",
+ "\n",
+ "# Rename the Debt Outstanding Amount column\n",
+ "us_debt_df.rename(columns={'Record Date': 'Year'}, inplace=True)\n",
+ "\n",
+ "# Rename the Debt Outstanding Amount column\n",
+ "us_debt_df.rename(columns={'Debt Outstanding Amount': 'Debt'}, inplace=True)\n",
+ "\n",
+ "# Sort the DataFrame by Year in ascending order\n",
+ "us_debt_df.sort_values(by='Year', ascending=True, inplace=True)\n",
+ "\n",
+ "# Reset the index\n",
+ "us_debt_df.reset_index(drop=True, inplace=True)\n",
+ "\n",
+ "# Calculate the percent change of debt from the previous year\n",
+ "us_debt_df['Debt_Percent_Change'] = us_debt_df['Debt'].pct_change() * 100\n",
+ "\n",
+ "# Remove the year 1949 from the DataFrame\n",
+ "us_debt_df = us_debt_df[us_debt_df['Year'] != 1949]\n",
+ "\n",
+ "# Calculate the quarterly percent change of debt\n",
+ "quarterly_percent_change = pd.DataFrame(((1 + us_debt_df['Debt_Percent_Change'] / 100) ** (1/4) - 1) * 100)\n",
+ "\n",
+ "# Add Year to quarterly_percent_change\n",
+ "quarterly_percent_change['Year'] = us_debt_df['Year']\n",
+ "\n",
+ "# Duplicate each year and add a quarterly index\n",
+ "quarterly_percent_change = quarterly_percent_change.loc[quarterly_percent_change.index.repeat(4)].reset_index(drop=True)\n",
+ "quarterly_percent_change['Quarter'] = [1, 2, 3, 4] * (len(quarterly_percent_change) // 4)\n",
+ "\n",
+ "# Merge the quarterly percent change of debt into the economic_df DataFrame\n",
+ "economic_df = economic_df.merge(quarterly_percent_change, on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head()\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 53,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ " SP500_Return_Rate | \n",
+ " Consumer_Confidence | \n",
+ " Federal_Funds_Rate | \n",
+ " Debt_Percent_Change | \n",
+ " Egg_Price | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ " 6.4 | \n",
+ " -1.48963 | \n",
+ " -2.65268 | \n",
+ " 7.458165 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ " -3.916469 | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ " 5.6 | \n",
+ " -0.62718 | \n",
+ " 1.06953 | \n",
+ " -0.979123 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ " -3.916469 | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ " 4.6 | \n",
+ " 2.05200 | \n",
+ " 1.58315 | \n",
+ " 16.263185 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ " -3.916469 | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 4.36743 | \n",
+ " 1.55847 | \n",
+ " 8.626437 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ " -3.916469 | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ " 3.5 | \n",
+ " 8.94573 | \n",
+ " 0.51414 | \n",
+ " 5.142996 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ " 4.590243 | \n",
+ "
\n",
+ " \n",
+ " | 5 | \n",
+ " 1951 | \n",
+ " 2 | \n",
+ " 1.71730 | \n",
+ " False | \n",
+ " 3.1 | \n",
+ " 9.17251 | \n",
+ " 0.00000 | \n",
+ " 1.830259 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ " 4.590243 | \n",
+ "
\n",
+ " \n",
+ " | 6 | \n",
+ " 1951 | \n",
+ " 3 | \n",
+ " 2.03906 | \n",
+ " False | \n",
+ " 3.2 | \n",
+ " 7.14778 | \n",
+ " -1.03094 | \n",
+ " 8.298538 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ " 4.590243 | \n",
+ "
\n",
+ " \n",
+ " | 7 | \n",
+ " 1951 | \n",
+ " 4 | \n",
+ " 0.21871 | \n",
+ " False | \n",
+ " 3.4 | \n",
+ " 6.57397 | \n",
+ " 2.55768 | \n",
+ " 5.157752 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ " 4.590243 | \n",
+ "
\n",
+ " \n",
+ " | 8 | \n",
+ " 1952 | \n",
+ " 1 | \n",
+ " 1.06127 | \n",
+ " False | \n",
+ " 3.1 | \n",
+ " 2.80192 | \n",
+ " 1.00503 | \n",
+ " -0.391155 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.378224 | \n",
+ " -2.334998 | \n",
+ "
\n",
+ " \n",
+ " | 9 | \n",
+ " 1952 | \n",
+ " 2 | \n",
+ " 0.21407 | \n",
+ " False | \n",
+ " 3.0 | \n",
+ " 2.08119 | \n",
+ " 0.49875 | \n",
+ " 7.210096 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.378224 | \n",
+ " -2.334998 | \n",
+ "
\n",
+ " \n",
+ " | 10 | \n",
+ " 1952 | \n",
+ " 3 | \n",
+ " 0.71864 | \n",
+ " False | \n",
+ " 3.2 | \n",
+ " 2.82776 | \n",
+ " 0.49628 | \n",
+ " -1.845908 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.378224 | \n",
+ " -2.334998 | \n",
+ "
\n",
+ " \n",
+ " | 11 | \n",
+ " 1952 | \n",
+ " 4 | \n",
+ " 3.23118 | \n",
+ " False | \n",
+ " 2.8 | \n",
+ " 1.44395 | \n",
+ " -1.49629 | \n",
+ " 9.418138 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.378224 | \n",
+ " -2.334998 | \n",
+ "
\n",
+ " \n",
+ " | 12 | \n",
+ " 1953 | \n",
+ " 1 | \n",
+ " 1.84197 | \n",
+ " False | \n",
+ " 2.7 | \n",
+ " 0.76972 | \n",
+ " 3.94140 | \n",
+ " -4.295555 | \n",
+ " 90.7 | \n",
+ " NaN | \n",
+ " 0.665438 | \n",
+ " 1.395475 | \n",
+ "
\n",
+ " \n",
+ " | 13 | \n",
+ " 1953 | \n",
+ " 2 | \n",
+ " 0.77012 | \n",
+ " False | \n",
+ " 2.6 | \n",
+ " 0.88095 | \n",
+ " 0.96155 | \n",
+ " -0.271995 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.665438 | \n",
+ " 1.395475 | \n",
+ "
\n",
+ " \n",
+ " | 14 | \n",
+ " 1953 | \n",
+ " 3 | \n",
+ " -0.56410 | \n",
+ " True | \n",
+ " 2.7 | \n",
+ " 0.66250 | \n",
+ " 5.12933 | \n",
+ " 0.158716 | \n",
+ " 80.8 | \n",
+ " NaN | \n",
+ " 0.665438 | \n",
+ " 1.395475 | \n",
+ "
\n",
+ " \n",
+ " | 15 | \n",
+ " 1953 | \n",
+ " 4 | \n",
+ " -1.52529 | \n",
+ " True | \n",
+ " 3.7 | \n",
+ " 0.72419 | \n",
+ " -0.45558 | \n",
+ " 7.758780 | \n",
+ " 80.7 | \n",
+ " NaN | \n",
+ " 0.665438 | \n",
+ " 1.395475 | \n",
+ "
\n",
+ " \n",
+ " | 16 | \n",
+ " 1954 | \n",
+ " 1 | \n",
+ " -0.47871 | \n",
+ " True | \n",
+ " 5.3 | \n",
+ " 1.25219 | \n",
+ " 0.00000 | \n",
+ " 10.016291 | \n",
+ " 82.0 | \n",
+ " NaN | \n",
+ " 0.483989 | \n",
+ " -4.789625 | \n",
+ "
\n",
+ " \n",
+ " | 17 | \n",
+ " 1954 | \n",
+ " 2 | \n",
+ " 0.10935 | \n",
+ " False | \n",
+ " 5.8 | \n",
+ " 0.71108 | \n",
+ " -0.45767 | \n",
+ " 10.407873 | \n",
+ " 82.9 | \n",
+ " NaN | \n",
+ " 0.483989 | \n",
+ " -4.789625 | \n",
+ "
\n",
+ " \n",
+ " | 18 | \n",
+ " 1954 | \n",
+ " 3 | \n",
+ " 1.12336 | \n",
+ " False | \n",
+ " 6.0 | \n",
+ " -0.01242 | \n",
+ " -0.92167 | \n",
+ " 8.046284 | \n",
+ " NaN | \n",
+ " 1.03 | \n",
+ " 0.483989 | \n",
+ " -4.789625 | \n",
+ "
\n",
+ " \n",
+ " | 19 | \n",
+ " 1954 | \n",
+ " 4 | \n",
+ " 1.93806 | \n",
+ " False | \n",
+ " 5.3 | \n",
+ " -0.49585 | \n",
+ " 0.00000 | \n",
+ " 11.838194 | \n",
+ " 87.0 | \n",
+ " 0.99 | \n",
+ " 0.483989 | \n",
+ " -4.789625 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "0 1950 1 3.85636 False 6.4 -1.48963 \n",
+ "1 1950 2 3.00531 False 5.6 -0.62718 \n",
+ "2 1950 3 3.79224 False 4.6 2.05200 \n",
+ "3 1950 4 1.89685 False 4.2 4.36743 \n",
+ "4 1951 1 1.34882 False 3.5 8.94573 \n",
+ "5 1951 2 1.71730 False 3.1 9.17251 \n",
+ "6 1951 3 2.03906 False 3.2 7.14778 \n",
+ "7 1951 4 0.21871 False 3.4 6.57397 \n",
+ "8 1952 1 1.06127 False 3.1 2.80192 \n",
+ "9 1952 2 0.21407 False 3.0 2.08119 \n",
+ "10 1952 3 0.71864 False 3.2 2.82776 \n",
+ "11 1952 4 3.23118 False 2.8 1.44395 \n",
+ "12 1953 1 1.84197 False 2.7 0.76972 \n",
+ "13 1953 2 0.77012 False 2.6 0.88095 \n",
+ "14 1953 3 -0.56410 True 2.7 0.66250 \n",
+ "15 1953 4 -1.52529 True 3.7 0.72419 \n",
+ "16 1954 1 -0.47871 True 5.3 1.25219 \n",
+ "17 1954 2 0.10935 False 5.8 0.71108 \n",
+ "18 1954 3 1.12336 False 6.0 -0.01242 \n",
+ "19 1954 4 1.93806 False 5.3 -0.49585 \n",
+ "\n",
+ " Gas_Prices SP500_Return_Rate Consumer_Confidence Federal_Funds_Rate \\\n",
+ "0 -2.65268 7.458165 NaN NaN \n",
+ "1 1.06953 -0.979123 NaN NaN \n",
+ "2 1.58315 16.263185 NaN NaN \n",
+ "3 1.55847 8.626437 NaN NaN \n",
+ "4 0.51414 5.142996 NaN NaN \n",
+ "5 0.00000 1.830259 NaN NaN \n",
+ "6 -1.03094 8.298538 NaN NaN \n",
+ "7 2.55768 5.157752 NaN NaN \n",
+ "8 1.00503 -0.391155 NaN NaN \n",
+ "9 0.49875 7.210096 NaN NaN \n",
+ "10 0.49628 -1.845908 NaN NaN \n",
+ "11 -1.49629 9.418138 NaN NaN \n",
+ "12 3.94140 -4.295555 90.7 NaN \n",
+ "13 0.96155 -0.271995 NaN NaN \n",
+ "14 5.12933 0.158716 80.8 NaN \n",
+ "15 -0.45558 7.758780 80.7 NaN \n",
+ "16 0.00000 10.016291 82.0 NaN \n",
+ "17 -0.45767 10.407873 82.9 NaN \n",
+ "18 -0.92167 8.046284 NaN 1.03 \n",
+ "19 0.00000 11.838194 87.0 0.99 \n",
+ "\n",
+ " Debt_Percent_Change Egg_Price \n",
+ "0 0.450617 -3.916469 \n",
+ "1 0.450617 -3.916469 \n",
+ "2 0.450617 -3.916469 \n",
+ "3 0.450617 -3.916469 \n",
+ "4 -0.208081 4.590243 \n",
+ "5 -0.208081 4.590243 \n",
+ "6 -0.208081 4.590243 \n",
+ "7 -0.208081 4.590243 \n",
+ "8 0.378224 -2.334998 \n",
+ "9 0.378224 -2.334998 \n",
+ "10 0.378224 -2.334998 \n",
+ "11 0.378224 -2.334998 \n",
+ "12 0.665438 1.395475 \n",
+ "13 0.665438 1.395475 \n",
+ "14 0.665438 1.395475 \n",
+ "15 0.665438 1.395475 \n",
+ "16 0.483989 -4.789625 \n",
+ "17 0.483989 -4.789625 \n",
+ "18 0.483989 -4.789625 \n",
+ "19 0.483989 -4.789625 "
+ ]
+ },
+ "execution_count": 53,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Define the data\n",
+ "data = {\n",
+ " 'Year': list(range(1935, 2025)),\n",
+ " 'CPI': [37.077, 36.762, 36.015, 35.669, 32.392, 33.377, 39.931, 48.546, 57.623, 54.754, 58.492, 60.062, 71.454, 74.269, 71.600, 61.769, 75.192, 68.708, 72.738, 60.862, 62.831, 62.485, 59.562, 62.685, 54.854, 59.115, 59.123, 55.823, 56.677, 56.123, 54.769, 62.400, 52.223, 56.285, 66.177, 65.515, 56.562, 56.231, 83.600, 83.938, 82.369, 89.954, 87.092, 82.369, 90.177, 88.600, 95.892, 93.269, 97.638, 109.085, 90.962, 97.254, 91.515, 93.554, 118.469, 124.138, 121.192, 108.292, 117.092, 114.254, 120.469, 142.123, 139.962, 135.431, 128.115, 131.854, 136.438, 138.200, 157.277, 167.023, 144.138, 151.169, 195.291, 222.708, 190.024, 192.833, 210.492, 217.141, 224.219, 242.990, 286.232, 225.979, 204.454, 226.595, 203.867, 212.542, 222.074, 293.676, 297.712, 323.107]\n",
+ "}\n",
+ "\n",
+ "# Create the DataFrame\n",
+ "cpi_df = pd.DataFrame(data)\n",
+ "\n",
+ "# Display the DataFrame\n",
+ "cpi_df.head()\n",
+ "\n",
+ "# Calculate the Continuously Compounded Rate of Change quarterly as a percent\n",
+ "cpi_df['CPI_Change'] = cpi_df['CPI'].pct_change()\n",
+ "cpi_df['CPI_Compounded_Rate'] = (1 + cpi_df['CPI_Change']).apply(np.log) * 100\n",
+ "\n",
+ "# Create a new DataFrame with years from 1935 to 2024 and quarters from 1 to 4\n",
+ "quarters = [1, 2, 3, 4]\n",
+ "year_quarter_df = pd.DataFrame([(year, quarter) for year in data['Year'] for quarter in quarters], columns=['Year', 'Quarter'])\n",
+ "\n",
+ "# Merge the CPI data with the year_quarter_df to get the CPI for each quarter\n",
+ "cpi_df = year_quarter_df.merge(cpi_df, on='Year', how='left')\n",
+ "\n",
+ "# Forward fill the CPI_Compounded_Rate column to fill in the missing values\n",
+ "cpi_df['CPI_Compounded_Rate'] = cpi_df['CPI_Compounded_Rate'].ffill()\n",
+ "\n",
+ "# Calculate the quarterly compounded rate so that it compounds to the original rate for the year\n",
+ "cpi_df['Quarterly_CPI_Compounded_Rate'] = (1 + cpi_df['CPI_Compounded_Rate'] / 100) ** (1/4) - 1\n",
+ "\n",
+ "# Convert the quarterly compounded rate to a percentage\n",
+ "cpi_df['Quarterly_CPI_Compounded_Rate'] = cpi_df['Quarterly_CPI_Compounded_Rate'] * 100\n",
+ "\n",
+ "# Rename the Quarterly_CPI_Compounded_Rate column to Egg_Price\n",
+ "cpi_df.rename(columns={'Quarterly_CPI_Compounded_Rate': 'Egg_Price'}, inplace=True)\n",
+ "\n",
+ "# Filter the DataFrame to start from Q1 1950\n",
+ "cpi_df = cpi_df[(cpi_df['Year'] >= 1950)]\n",
+ "\n",
+ "# Merge the CPI data into the economic_df DataFrame\n",
+ "economic_df = economic_df.merge(cpi_df[['Year', 'Quarter', 'Egg_Price']], on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head(20)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 54,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ " SP500_Return_Rate | \n",
+ " Consumer_Confidence | \n",
+ " Federal_Funds_Rate | \n",
+ " Debt_Percent_Change | \n",
+ " Egg_Price | \n",
+ " President | \n",
+ " President_Party | \n",
+ " House_Majority | \n",
+ " Senate_Majority | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1950 | \n",
+ " 1 | \n",
+ " 3.85636 | \n",
+ " False | \n",
+ " 6.4 | \n",
+ " -1.48963 | \n",
+ " -2.65268 | \n",
+ " 7.458165 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ " -3.916469 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1950 | \n",
+ " 2 | \n",
+ " 3.00531 | \n",
+ " False | \n",
+ " 5.6 | \n",
+ " -0.62718 | \n",
+ " 1.06953 | \n",
+ " -0.979123 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ " -3.916469 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1950 | \n",
+ " 3 | \n",
+ " 3.79224 | \n",
+ " False | \n",
+ " 4.6 | \n",
+ " 2.05200 | \n",
+ " 1.58315 | \n",
+ " 16.263185 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ " -3.916469 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1950 | \n",
+ " 4 | \n",
+ " 1.89685 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 4.36743 | \n",
+ " 1.55847 | \n",
+ " 8.626437 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.450617 | \n",
+ " -3.916469 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1951 | \n",
+ " 1 | \n",
+ " 1.34882 | \n",
+ " False | \n",
+ " 3.5 | \n",
+ " 8.94573 | \n",
+ " 0.51414 | \n",
+ " 5.142996 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ " 4.590243 | \n",
+ " Truman | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 5 | \n",
+ " 1951 | \n",
+ " 2 | \n",
+ " 1.71730 | \n",
+ " False | \n",
+ " 3.1 | \n",
+ " 9.17251 | \n",
+ " 0.00000 | \n",
+ " 1.830259 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ " 4.590243 | \n",
+ " Truman | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 6 | \n",
+ " 1951 | \n",
+ " 3 | \n",
+ " 2.03906 | \n",
+ " False | \n",
+ " 3.2 | \n",
+ " 7.14778 | \n",
+ " -1.03094 | \n",
+ " 8.298538 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ " 4.590243 | \n",
+ " Truman | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 7 | \n",
+ " 1951 | \n",
+ " 4 | \n",
+ " 0.21871 | \n",
+ " False | \n",
+ " 3.4 | \n",
+ " 6.57397 | \n",
+ " 2.55768 | \n",
+ " 5.157752 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " -0.208081 | \n",
+ " 4.590243 | \n",
+ " Truman | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 8 | \n",
+ " 1952 | \n",
+ " 1 | \n",
+ " 1.06127 | \n",
+ " False | \n",
+ " 3.1 | \n",
+ " 2.80192 | \n",
+ " 1.00503 | \n",
+ " -0.391155 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.378224 | \n",
+ " -2.334998 | \n",
+ " Truman | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 9 | \n",
+ " 1952 | \n",
+ " 2 | \n",
+ " 0.21407 | \n",
+ " False | \n",
+ " 3.0 | \n",
+ " 2.08119 | \n",
+ " 0.49875 | \n",
+ " 7.210096 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 0.378224 | \n",
+ " -2.334998 | \n",
+ " Truman | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "0 1950 1 3.85636 False 6.4 -1.48963 \n",
+ "1 1950 2 3.00531 False 5.6 -0.62718 \n",
+ "2 1950 3 3.79224 False 4.6 2.05200 \n",
+ "3 1950 4 1.89685 False 4.2 4.36743 \n",
+ "4 1951 1 1.34882 False 3.5 8.94573 \n",
+ "5 1951 2 1.71730 False 3.1 9.17251 \n",
+ "6 1951 3 2.03906 False 3.2 7.14778 \n",
+ "7 1951 4 0.21871 False 3.4 6.57397 \n",
+ "8 1952 1 1.06127 False 3.1 2.80192 \n",
+ "9 1952 2 0.21407 False 3.0 2.08119 \n",
+ "\n",
+ " Gas_Prices SP500_Return_Rate Consumer_Confidence Federal_Funds_Rate \\\n",
+ "0 -2.65268 7.458165 NaN NaN \n",
+ "1 1.06953 -0.979123 NaN NaN \n",
+ "2 1.58315 16.263185 NaN NaN \n",
+ "3 1.55847 8.626437 NaN NaN \n",
+ "4 0.51414 5.142996 NaN NaN \n",
+ "5 0.00000 1.830259 NaN NaN \n",
+ "6 -1.03094 8.298538 NaN NaN \n",
+ "7 2.55768 5.157752 NaN NaN \n",
+ "8 1.00503 -0.391155 NaN NaN \n",
+ "9 0.49875 7.210096 NaN NaN \n",
+ "\n",
+ " Debt_Percent_Change Egg_Price President President_Party House_Majority \\\n",
+ "0 0.450617 -3.916469 NaN NaN NaN \n",
+ "1 0.450617 -3.916469 NaN NaN NaN \n",
+ "2 0.450617 -3.916469 NaN NaN NaN \n",
+ "3 0.450617 -3.916469 NaN NaN NaN \n",
+ "4 -0.208081 4.590243 Truman Democrat Democrats \n",
+ "5 -0.208081 4.590243 Truman Democrat Democrats \n",
+ "6 -0.208081 4.590243 Truman Democrat Democrats \n",
+ "7 -0.208081 4.590243 Truman Democrat Democrats \n",
+ "8 0.378224 -2.334998 Truman Democrat Democrats \n",
+ "9 0.378224 -2.334998 Truman Democrat Democrats \n",
+ "\n",
+ " Senate_Majority \n",
+ "0 NaN \n",
+ "1 NaN \n",
+ "2 NaN \n",
+ "3 NaN \n",
+ "4 Democrats \n",
+ "5 Democrats \n",
+ "6 Democrats \n",
+ "7 Democrats \n",
+ "8 Democrats \n",
+ "9 Democrats "
+ ]
+ },
+ "execution_count": 54,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Read the CSV file for Presidents\n",
+ "presidents_df = pd.read_csv('Presidents.csv')\n",
+ "\n",
+ "# Display the DataFrame\n",
+ "presidents_df.head()\n",
+ "\n",
+ "# Extract the start and end years from the \"Congress\" column\n",
+ "presidents_df['Start_Year'] = presidents_df['Congress'].str.extract(r'\\((\\d{4})–')[0].astype(int)\n",
+ "presidents_df['End_Year'] = presidents_df['Congress'].str.extract(r'–(\\d{4})\\)')[0].astype(int)\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "presidents_df.head()\n",
+ "\n",
+ "# Extract the President and President Party into separate columns\n",
+ "presidents_df['President'] = presidents_df['Presidency'].str.extract(r'\\((.*?)\\)')[0]\n",
+ "presidents_df['President_Party'] = presidents_df['Presidency'].str.extract(r'^(.*?) \\(')[0]\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "presidents_df.head()\n",
+ "\n",
+ "# Create a new DataFrame with the required columns\n",
+ "presidents_df = presidents_df[['Start_Year', 'President', 'President_Party', 'House Majority', 'Senate Majority']]\n",
+ "\n",
+ "# Rename the columns\n",
+ "presidents_df.columns = ['Year', 'President', 'President_Party', 'House_Majority', 'Senate_Majority']\n",
+ "\n",
+ "# Filter the DataFrame to start from 1950\n",
+ "presidents_df = presidents_df[presidents_df['Year'] >= 1950]\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "presidents_df.head()\n",
+ "\n",
+ "# Fill in the missing years with the same info as the year above\n",
+ "presidents_df = presidents_df.set_index('Year').reindex(range(1950, 2025)).ffill().reset_index()\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "presidents_df.head(10)\n",
+ "\n",
+ "# Create a DataFrame with years from Q1 1950 to Q4 2024\n",
+ "years = range(1950, 2025)\n",
+ "quarters = [1, 2, 3, 4]\n",
+ "year_quarter_df = pd.DataFrame([(year, quarter) for year in years for quarter in quarters], columns=['Year', 'Quarter'])\n",
+ "\n",
+ "# Merge the presidents_df with year_quarter_df to get the President and President_Party for each quarter\n",
+ "year_quarter_df = year_quarter_df.merge(presidents_df, on='Year', how='left')\n",
+ "\n",
+ "# Forward fill the President and President_Party columns to fill in the missing values\n",
+ "year_quarter_df[['President', 'President_Party', 'House_Majority', 'Senate_Majority']] = year_quarter_df[['President', 'President_Party', 'House_Majority', 'Senate_Majority']].ffill()\n",
+ "\n",
+ "# Merge the year_quarter_df with economic_df to get the complete dataset\n",
+ "economic_df = economic_df.merge(year_quarter_df, on=['Year', 'Quarter'], how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head(10)\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 55,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ " SP500_Return_Rate | \n",
+ " Consumer_Confidence | \n",
+ " Federal_Funds_Rate | \n",
+ " Debt_Percent_Change | \n",
+ " Egg_Price | \n",
+ " President | \n",
+ " President_Party | \n",
+ " House_Majority | \n",
+ " Senate_Majority | \n",
+ " President_Party_Stayed | \n",
+ " Turnout_as_%_VAP | \n",
+ " Approval | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 0 | \n",
+ " 1956 | \n",
+ " 4 | \n",
+ " 1.63251 | \n",
+ " False | \n",
+ " 4.1 | \n",
+ " 2.58161 | \n",
+ " -0.85837 | \n",
+ " -0.793072 | \n",
+ " 100.2 | \n",
+ " 2.93 | \n",
+ " -0.148249 | \n",
+ " -0.138338 | \n",
+ " Eisenhower | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " True | \n",
+ " 60.4 | \n",
+ " 75 | \n",
+ "
\n",
+ " \n",
+ " | 1 | \n",
+ " 1960 | \n",
+ " 4 | \n",
+ " -1.29143 | \n",
+ " True | \n",
+ " 6.3 | \n",
+ " 1.39598 | \n",
+ " -0.26954 | \n",
+ " 12.098686 | \n",
+ " 90.1 | \n",
+ " 2.30 | \n",
+ " 0.142374 | \n",
+ " 1.819951 | \n",
+ " Eisenhower | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " False | \n",
+ " 63.5 | \n",
+ " 59 | \n",
+ "
\n",
+ " \n",
+ " | 2 | \n",
+ " 1964 | \n",
+ " 4 | \n",
+ " 0.30871 | \n",
+ " False | \n",
+ " 5.0 | \n",
+ " 1.26610 | \n",
+ " NaN | \n",
+ " 2.240089 | \n",
+ " 99.9 | \n",
+ " 3.58 | \n",
+ " 0.475032 | \n",
+ " -0.246479 | \n",
+ " Kennedy / L. Johnson | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " True | \n",
+ " 63.4 | \n",
+ " 70 | \n",
+ "
\n",
+ " \n",
+ " | 3 | \n",
+ " 1968 | \n",
+ " 4 | \n",
+ " 0.39200 | \n",
+ " False | \n",
+ " 3.4 | \n",
+ " 4.62598 | \n",
+ " 0.12384 | \n",
+ " -1.010722 | \n",
+ " 91.7 | \n",
+ " 5.92 | \n",
+ " 1.598019 | \n",
+ " 1.822212 | \n",
+ " L. Johnson | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " False | \n",
+ " 62.8 | \n",
+ " 43 | \n",
+ "
\n",
+ " \n",
+ " | 4 | \n",
+ " 1972 | \n",
+ " 4 | \n",
+ " 1.66057 | \n",
+ " False | \n",
+ " 5.4 | \n",
+ " 3.33333 | \n",
+ " 1.50032 | \n",
+ " 8.747320 | \n",
+ " 90.7 | \n",
+ " 5.15 | \n",
+ " 1.781072 | \n",
+ " -0.147053 | \n",
+ " Nixon | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " True | \n",
+ " 57.0 | \n",
+ " 62 | \n",
+ "
\n",
+ " \n",
+ " | 5 | \n",
+ " 1976 | \n",
+ " 4 | \n",
+ " 0.72001 | \n",
+ " False | \n",
+ " 7.8 | \n",
+ " 5.18697 | \n",
+ " 0.13899 | \n",
+ " 2.847585 | \n",
+ " 87.0 | \n",
+ " 4.87 | \n",
+ " 3.861222 | \n",
+ " 2.133010 | \n",
+ " Ford | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " False | \n",
+ " 55.7 | \n",
+ " 53 | \n",
+ "
\n",
+ " \n",
+ " | 6 | \n",
+ " 1980 | \n",
+ " 4 | \n",
+ " 1.84775 | \n",
+ " False | \n",
+ " 7.4 | \n",
+ " 12.53836 | \n",
+ " -0.98023 | \n",
+ " 3.323167 | \n",
+ " 72.1 | \n",
+ " 15.85 | \n",
+ " 2.369950 | \n",
+ " -0.444012 | \n",
+ " Carter | \n",
+ " Democrat | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " False | \n",
+ " 55.1 | \n",
+ " 31 | \n",
+ "
\n",
+ " \n",
+ " | 7 | \n",
+ " 1984 | \n",
+ " 4 | \n",
+ " 0.81742 | \n",
+ " False | \n",
+ " 7.3 | \n",
+ " 4.15430 | \n",
+ " 0.17144 | \n",
+ " 5.297671 | \n",
+ " 95.0 | \n",
+ " 9.26 | \n",
+ " 3.366893 | \n",
+ " 2.663223 | \n",
+ " Reagan | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Republicans | \n",
+ " True | \n",
+ " 54.5 | \n",
+ " 62 | \n",
+ "
\n",
+ " \n",
+ " | 8 | \n",
+ " 1988 | \n",
+ " 4 | \n",
+ " 1.32366 | \n",
+ " False | \n",
+ " 5.3 | \n",
+ " 4.30636 | \n",
+ " -2.55644 | \n",
+ " 3.782163 | \n",
+ " 93.0 | \n",
+ " 8.47 | \n",
+ " 2.579637 | \n",
+ " 0.546403 | \n",
+ " Reagan | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " True | \n",
+ " 51.4 | \n",
+ " 57 | \n",
+ "
\n",
+ " \n",
+ " | 9 | \n",
+ " 1992 | \n",
+ " 4 | \n",
+ " 1.03746 | \n",
+ " False | \n",
+ " 7.4 | \n",
+ " 3.12197 | \n",
+ " -0.88482 | \n",
+ " 6.268820 | \n",
+ " 83.2 | \n",
+ " 3.03 | \n",
+ " 2.618940 | \n",
+ " -2.940821 | \n",
+ " G.H.W. Bush | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ " False | \n",
+ " 56.3 | \n",
+ " 43 | \n",
+ "
\n",
+ " \n",
+ " | 10 | \n",
+ " 1996 | \n",
+ " 4 | \n",
+ " 1.03302 | \n",
+ " False | \n",
+ " 5.3 | \n",
+ " 3.23140 | \n",
+ " -0.12484 | \n",
+ " 9.776326 | \n",
+ " 97.5 | \n",
+ " 5.28 | \n",
+ " 1.237538 | \n",
+ " 3.898547 | \n",
+ " Clinton | \n",
+ " Democrat | \n",
+ " Republicans | \n",
+ " Republicans | \n",
+ " True | \n",
+ " 49.8 | \n",
+ " 58 | \n",
+ "
\n",
+ " \n",
+ " | 11 | \n",
+ " 2000 | \n",
+ " 4 | \n",
+ " 0.59526 | \n",
+ " False | \n",
+ " 3.9 | \n",
+ " 3.44350 | \n",
+ " -1.49578 | \n",
+ " -3.623132 | \n",
+ " 103.9 | \n",
+ " 6.47 | \n",
+ " 0.079054 | \n",
+ " 0.711543 | \n",
+ " Clinton | \n",
+ " Democrat | \n",
+ " Republicans | \n",
+ " Republicans | \n",
+ " False | \n",
+ " 52.1 | \n",
+ " 63 | \n",
+ "
\n",
+ " \n",
+ " | 12 | \n",
+ " 2004 | \n",
+ " 4 | \n",
+ " 1.01504 | \n",
+ " False | \n",
+ " 5.4 | \n",
+ " 3.38495 | \n",
+ " 3.51622 | \n",
+ " 6.177213 | \n",
+ " 93.9 | \n",
+ " 1.95 | \n",
+ " 2.127100 | \n",
+ " 1.470327 | \n",
+ " G.W. Bush | \n",
+ " Republican | \n",
+ " Republicans | \n",
+ " Republicans | \n",
+ " True | \n",
+ " 56.7 | \n",
+ " 53 | \n",
+ "
\n",
+ " \n",
+ " | 13 | \n",
+ " 2008 | \n",
+ " 4 | \n",
+ " -2.21334 | \n",
+ " True | \n",
+ " 6.9 | \n",
+ " 1.59580 | \n",
+ " -49.85553 | \n",
+ " -9.931636 | \n",
+ " 57.7 | \n",
+ " 0.51 | \n",
+ " 2.710584 | \n",
+ " 3.133851 | \n",
+ " G.W. Bush | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats13 | \n",
+ " False | \n",
+ " 58.3 | \n",
+ " 29 | \n",
+ "
\n",
+ " \n",
+ " | 14 | \n",
+ " 2012 | \n",
+ " 4 | \n",
+ " 0.11557 | \n",
+ " False | \n",
+ " 7.8 | \n",
+ " 1.90357 | \n",
+ " -3.84963 | \n",
+ " 3.517262 | \n",
+ " 79.4 | \n",
+ " 0.16 | \n",
+ " 2.090194 | \n",
+ " 0.768575 | \n",
+ " Obama | \n",
+ " Democrat | \n",
+ " Republicans | \n",
+ " Democrats | \n",
+ " True | \n",
+ " 54.9 | \n",
+ " 53 | \n",
+ "
\n",
+ " \n",
+ " | 15 | \n",
+ " 2016 | \n",
+ " 4 | \n",
+ " 0.55277 | \n",
+ " False | \n",
+ " 4.8 | \n",
+ " 1.80698 | \n",
+ " 1.26420 | \n",
+ " 6.712243 | \n",
+ " 93.1 | \n",
+ " 0.45 | \n",
+ " 1.904641 | \n",
+ " -6.519273 | \n",
+ " Obama | \n",
+ " Democrat | \n",
+ " Republicans | \n",
+ " Republicans | \n",
+ " False | \n",
+ " 55.7 | \n",
+ " 56 | \n",
+ "
\n",
+ " \n",
+ " | 16 | \n",
+ " 2020 | \n",
+ " 4 | \n",
+ " 1.07888 | \n",
+ " False | \n",
+ " 6.8 | \n",
+ " 1.22598 | \n",
+ " -1.78467 | \n",
+ " 11.412862 | \n",
+ " 79.8 | \n",
+ " 0.09 | \n",
+ " 4.357076 | \n",
+ " 1.025900 | \n",
+ " Trump | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Republicans | \n",
+ " False | \n",
+ " 62.8 | \n",
+ " 43 | \n",
+ "
\n",
+ " \n",
+ " | 17 | \n",
+ " 2024 | \n",
+ " 4 | \n",
+ " 0.55662 | \n",
+ " False | \n",
+ " 4.1 | \n",
+ " 2.73538 | \n",
+ " -8.63110 | \n",
+ " 4.400000 | \n",
+ " 72.1 | \n",
+ " 4.65 | \n",
+ " 1.688385 | \n",
+ " 1.986447 | \n",
+ " Biden | \n",
+ " Democrat | \n",
+ " Republicans | \n",
+ " Democrats | \n",
+ " False | \n",
+ " 58.1 | \n",
+ " 37 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "0 1956 4 1.63251 False 4.1 2.58161 \n",
+ "1 1960 4 -1.29143 True 6.3 1.39598 \n",
+ "2 1964 4 0.30871 False 5.0 1.26610 \n",
+ "3 1968 4 0.39200 False 3.4 4.62598 \n",
+ "4 1972 4 1.66057 False 5.4 3.33333 \n",
+ "5 1976 4 0.72001 False 7.8 5.18697 \n",
+ "6 1980 4 1.84775 False 7.4 12.53836 \n",
+ "7 1984 4 0.81742 False 7.3 4.15430 \n",
+ "8 1988 4 1.32366 False 5.3 4.30636 \n",
+ "9 1992 4 1.03746 False 7.4 3.12197 \n",
+ "10 1996 4 1.03302 False 5.3 3.23140 \n",
+ "11 2000 4 0.59526 False 3.9 3.44350 \n",
+ "12 2004 4 1.01504 False 5.4 3.38495 \n",
+ "13 2008 4 -2.21334 True 6.9 1.59580 \n",
+ "14 2012 4 0.11557 False 7.8 1.90357 \n",
+ "15 2016 4 0.55277 False 4.8 1.80698 \n",
+ "16 2020 4 1.07888 False 6.8 1.22598 \n",
+ "17 2024 4 0.55662 False 4.1 2.73538 \n",
+ "\n",
+ " Gas_Prices SP500_Return_Rate Consumer_Confidence Federal_Funds_Rate \\\n",
+ "0 -0.85837 -0.793072 100.2 2.93 \n",
+ "1 -0.26954 12.098686 90.1 2.30 \n",
+ "2 NaN 2.240089 99.9 3.58 \n",
+ "3 0.12384 -1.010722 91.7 5.92 \n",
+ "4 1.50032 8.747320 90.7 5.15 \n",
+ "5 0.13899 2.847585 87.0 4.87 \n",
+ "6 -0.98023 3.323167 72.1 15.85 \n",
+ "7 0.17144 5.297671 95.0 9.26 \n",
+ "8 -2.55644 3.782163 93.0 8.47 \n",
+ "9 -0.88482 6.268820 83.2 3.03 \n",
+ "10 -0.12484 9.776326 97.5 5.28 \n",
+ "11 -1.49578 -3.623132 103.9 6.47 \n",
+ "12 3.51622 6.177213 93.9 1.95 \n",
+ "13 -49.85553 -9.931636 57.7 0.51 \n",
+ "14 -3.84963 3.517262 79.4 0.16 \n",
+ "15 1.26420 6.712243 93.1 0.45 \n",
+ "16 -1.78467 11.412862 79.8 0.09 \n",
+ "17 -8.63110 4.400000 72.1 4.65 \n",
+ "\n",
+ " Debt_Percent_Change Egg_Price President President_Party \\\n",
+ "0 -0.148249 -0.138338 Eisenhower Republican \n",
+ "1 0.142374 1.819951 Eisenhower Republican \n",
+ "2 0.475032 -0.246479 Kennedy / L. Johnson Democrat \n",
+ "3 1.598019 1.822212 L. Johnson Democrat \n",
+ "4 1.781072 -0.147053 Nixon Republican \n",
+ "5 3.861222 2.133010 Ford Republican \n",
+ "6 2.369950 -0.444012 Carter Democrat \n",
+ "7 3.366893 2.663223 Reagan Republican \n",
+ "8 2.579637 0.546403 Reagan Republican \n",
+ "9 2.618940 -2.940821 G.H.W. Bush Republican \n",
+ "10 1.237538 3.898547 Clinton Democrat \n",
+ "11 0.079054 0.711543 Clinton Democrat \n",
+ "12 2.127100 1.470327 G.W. Bush Republican \n",
+ "13 2.710584 3.133851 G.W. Bush Republican \n",
+ "14 2.090194 0.768575 Obama Democrat \n",
+ "15 1.904641 -6.519273 Obama Democrat \n",
+ "16 4.357076 1.025900 Trump Republican \n",
+ "17 1.688385 1.986447 Biden Democrat \n",
+ "\n",
+ " House_Majority Senate_Majority President_Party_Stayed Turnout_as_%_VAP \\\n",
+ "0 Democrats Democrats True 60.4 \n",
+ "1 Democrats Democrats False 63.5 \n",
+ "2 Democrats Democrats True 63.4 \n",
+ "3 Democrats Democrats False 62.8 \n",
+ "4 Democrats Democrats True 57.0 \n",
+ "5 Democrats Democrats False 55.7 \n",
+ "6 Democrats Democrats False 55.1 \n",
+ "7 Democrats Republicans True 54.5 \n",
+ "8 Democrats Democrats True 51.4 \n",
+ "9 Democrats Democrats False 56.3 \n",
+ "10 Republicans Republicans True 49.8 \n",
+ "11 Republicans Republicans False 52.1 \n",
+ "12 Republicans Republicans True 56.7 \n",
+ "13 Democrats Democrats13 False 58.3 \n",
+ "14 Republicans Democrats True 54.9 \n",
+ "15 Republicans Republicans False 55.7 \n",
+ "16 Democrats Republicans False 62.8 \n",
+ "17 Republicans Democrats False 58.1 \n",
+ "\n",
+ " Approval \n",
+ "0 75 \n",
+ "1 59 \n",
+ "2 70 \n",
+ "3 43 \n",
+ "4 62 \n",
+ "5 53 \n",
+ "6 31 \n",
+ "7 62 \n",
+ "8 57 \n",
+ "9 43 \n",
+ "10 58 \n",
+ "11 63 \n",
+ "12 53 \n",
+ "13 29 \n",
+ "14 53 \n",
+ "15 56 \n",
+ "16 43 \n",
+ "17 37 "
+ ]
+ },
+ "execution_count": 55,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Define the election years (assuming US presidential elections every 4 years starting from 1956)\n",
+ "election_years = list(range(1956, 2025, 4))\n",
+ "\n",
+ "# Filter the economic_df to include only the fourth quarter of the election years\n",
+ "election_q4_df = economic_df[(economic_df['Year'].isin(election_years)) & (economic_df['Quarter'] == 4)]\n",
+ "\n",
+ "# Get the quarter right after the election year (first quarter of the next year)\n",
+ "next_quarters_df = economic_df[(economic_df['Year'].isin([year + 1 for year in election_years])) & (economic_df['Quarter'] == 1)]\n",
+ "\n",
+ "# Concatenate the two DataFrames\n",
+ "result_df = pd.concat([election_q4_df, next_quarters_df])\n",
+ "\n",
+ "# Sort the DataFrame by Year and Quarter\n",
+ "result_df = result_df.sort_values(by=['Year', 'Quarter']).reset_index(drop=True)\n",
+ "\n",
+ "# Display the DataFrame\n",
+ "result_df.tail(20)\n",
+ "\n",
+ "# Add a column to indicate if the President's party stayed the same after the election\n",
+ "result_df['President_Party_Stayed'] = result_df['President_Party'].eq(result_df['President_Party'].shift(-1))\n",
+ "\n",
+ "# Filter the result_df to include only the fourth quarter of the election years\n",
+ "result_df = result_df[result_df['Quarter'] == 4]\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "result_df.head(20)\n",
+ "\n",
+ "# Define the turnout data\n",
+ "turnout_data = {\n",
+ " 'Year': [1956, 1960, 1964, 1968, 1972, 1976, 1980, 1984, 1988, 1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020, 2024],\n",
+ " 'Turnout_as_%_VAP': [60.4, 63.5, 63.4, 62.8, 57.0, 55.7, 55.1, 54.5, 51.4, 56.3, 49.8, 52.1, 56.7, 58.3, 54.9, 55.7, 62.8, 58.1],\n",
+ " 'Approval': [75, 59, 70, 43, 62, 53, 31, 62, 57, 43, 58, 63, 53, 29, 53, 56, 43, 37]\n",
+ "}\n",
+ "\n",
+ "# Convert the turnout data to a DataFrame\n",
+ "turnout_df = pd.DataFrame(turnout_data)\n",
+ "\n",
+ "# Merge the turnout data into the result_df DataFrame\n",
+ "result_df = result_df.merge(turnout_df, on='Year', how='left')\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "result_df.head(20)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.12.1"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 2
+}
diff --git a/SidLamsal-MiniProject/MiniProjectCode/Presidents.csv b/SidLamsal-MiniProject/MiniProjectCode/Presidents.csv
new file mode 100644
index 0000000..5b7aa00
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/Presidents.csv
@@ -0,0 +1,86 @@
+Congress,House Majority,Senate Majority,Presidency,Party Government
+35th (1857–1859),Democrats,Democrats,Democrat (Buchanan),Unified
+36th (1859–1861),Republicans,Democrats,Democrat (Buchanan),Divided
+37th (1861–1863),Republicans,Republicans,Republican (Lincoln),Unified
+38th (1863–1865),Republicans,Republicans,Republican (Lincoln),Unified
+39th (1865–1867),Republicans,Republicans,Republican (Lincoln) / Democrat (A. Johnson),Unified/ Divided2
+40th (1867–1869),Republicans,Republicans,Democrat (A. Johnson),Divided
+41st (1869–1871),Republicans,Republicans,Republican (Grant),Unified
+42nd (1871–1873),Republicans,Republicans,Republican (Grant),Unified
+43rd (1873–1875),Republicans,Republicans,Republican (Grant),Unified
+44th (1875–1877),Democrats,Republicans,Republican (Grant),Divided
+45th (1877–1879),Democrats,Republicans,Republican (Hayes),Divided
+46th (1879–1881),Democrats,Democrats,Republican (Hayes),Divided
+47th (1881–1883),Republicans,Republicans3,Republican (Garfield / Arthur)4,Unified
+48th (1883–1885),Democrats,Republicans,Republican (Arthur),Divided
+49th (1885–1887),Democrats,Republicans,Democrat (Cleveland),Divided
+50th (1887–1889),Democrats,Republicans,Democrat (Cleveland),Divided
+51st (1889–1891),Republicans,Republicans,Republican (Harrison),Unified
+52nd (1891–1893),Democrats,Republicans,Republican (Harrison),Divided
+53rd (1893–1895),Democrats,Democrats,Democrat (Cleveland),Unified
+54th (1895–1897),Republicans,Republicans,Democrat (Cleveland),Divided
+55th (1897–1899),Republicans,Republicans,Republican (McKinley),Unified
+56th (1899–1901),Republicans,Republicans,Republican (McKinley),Unified
+57th (1901–1903),Republicans,Republicans,Republican (McKinley / T. Roosevelt)5,Unified
+58th (1903–1905),Republicans,Republicans,Republican (T. Roosevelt),Unified
+59th (1905–1907),Republicans,Republicans,Republican (T. Roosevelt),Unified
+60th (1907–1909),Republicans,Republicans,Republican (T. Roosevelt),Unified
+61st (1909–1911),Republicans,Republicans,Republican (Taft),Unified
+62nd (1911–1913),Democrats,Republicans,Republican (Taft),Divided
+63rd (1913–1915),Democrats,Democrats,Democrat (Wilson),Unified
+64th (1915–1917),Democrats,Democrats,Democrat (Wilson),Unified
+65th (1917–1919),Democrats6,Democrats,Democrat (Wilson),Unified
+66th (1919–1921),Republicans,Republicans,Democrat (Wilson),Divided
+67th (1921–1923),Republicans,Republicans,Republican (Harding),Unified
+68th (1923–1925),Republicans,Republicans,Republican (Harding / Coolidge)7,Unified
+69th (1925–1927),Republicans,Republicans,Republican (Coolidge),Unified
+70th (1927–1929),Republicans,Republicans,Republican (Coolidge),Unified
+71st (1929–1931),Republicans,Republicans,Republican (Hoover),Unified
+72nd (1931–1933),Democrats8,Republicans,Republican (Hoover),Divided
+73rd (1933–1935),Democrats,Democrats,Democrat (F. Roosevelt),Unified
+74th (1935–1937),Democrats,Democrats,Democrat (F. Roosevelt),Unified
+75th (1937–1939),Democrats,Democrats,Democrat (F. Roosevelt),Unified
+76th (1939–1941),Democrats,Democrats,Democrat (F. Roosevelt),Unified
+77th (1941–1943),Democrats,Democrats,Democrat (F. Roosevelt),Unified
+78th (1943–1945),Democrats,Democrats,Democrat (F. Roosevelt),Unified
+79th (1945–1947),Democrats,Democrats,Democrat (F. Roosevelt / Truman)9,Unified
+80th (1947–1949),Republicans,Republicans,Democrat (Truman),Divided
+81st (1949–1951),Democrats,Democrats,Democrat (Truman),Unified
+82nd (1951–1953),Democrats,Democrats,Democrat (Truman),Unified
+83rd (1953–1955),Republicans,Republicans,Republican (Eisenhower),Unified
+84th (1955–1957),Democrats,Democrats,Republican (Eisenhower),Divided
+85th (1957–1959),Democrats,Democrats,Republican (Eisenhower),Divided
+86th (1959–1961),Democrats,Democrats,Republican (Eisenhower),Divided
+87th (1961–1963),Democrats,Democrats,Democrat (Kennedy),Unified
+88th (1963–1965),Democrats,Democrats,Democrat (Kennedy / L. Johnson)10,Unified
+89th (1965–1967),Democrats,Democrats,Democrat (L. Johnson),Unified
+90th (1967–1969),Democrats,Democrats,Democrat (L. Johnson),Unified
+91st (1969–1971),Democrats,Democrats,Republican (Nixon),Divided
+92nd (1971–1973),Democrats,Democrats,Republican (Nixon),Divided
+93rd (1973–1975),Democrats,Democrats,Republican (Nixon / Ford)11,Divided
+94th (1975–1977),Democrats,Democrats,Republican (Ford),Divided
+95th (1977–1979),Democrats,Democrats,Democrat (Carter),Unified
+96th (1979–1981),Democrats,Democrats,Democrat (Carter),Unified
+97th (1981–1983),Democrats,Republicans,Republican (Reagan),Divided
+98th (1983–1985),Democrats,Republicans,Republican (Reagan),Divided
+99th (1985–1987),Democrats,Republicans,Republican (Reagan),Divided
+100th (1987–1989),Democrats,Democrats,Republican (Reagan),Divided
+101st (1989–1991),Democrats,Democrats,Republican (G.H.W. Bush),Divided
+102nd (1991–1993),Democrats,Democrats,Republican (G.H.W. Bush),Divided
+103rd (1993–1995),Democrats,Democrats,Democrat (Clinton),Unified
+104th (1995–1997),Republicans,Republicans,Democrat (Clinton),Divided
+105th (1997–1999),Republicans,Republicans,Democrat (Clinton),Divided
+106th (1999–2001),Republicans,Republicans,Democrat (Clinton),Divided
+107th (2001–2003),Republicans,Republicans / Democrats12,Republican (G.W. Bush),Unified / Divided
+108th (2003–2005),Republicans,Republicans,Republican (G.W. Bush),Unified
+109th (2005–2007),Republicans,Republicans,Republican (G.W. Bush),Unified
+110th (2007–2009),Democrats,Democrats13,Republican (G.W. Bush),Divided
+111th (2009–2011),Democrats,Democrats,Democrat (Obama),Unified
+112th (2011–2013),Republicans,Democrats,Democrat (Obama),Divided
+113th (2013–2015),Republicans,Democrats,Democrat (Obama),Divided
+114th (2015–2017),Republicans,Republicans,Democrat (Obama),Divided
+115th (2017–2019),Republicans,Republicans,Republican (Trump),Unified
+116th (2019–2021),Democrats,Republicans,Republican (Trump),Divided
+117th (2021–2023),Democrats,Democrats14,Democrat (Biden),Unified
+118th (2023–2025),Republicans,Democrats,Democrat (Biden),Divided
+119th (2025–2027),Republicans,Republicans,Republican (Trump),Unified
diff --git a/SidLamsal-MiniProject/MiniProjectCode/SNP500.csv b/SidLamsal-MiniProject/MiniProjectCode/SNP500.csv
new file mode 100644
index 0000000..2f311fe
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/SNP500.csv
@@ -0,0 +1,899 @@
+Year,Month,Return (%),Amount ($),CPI
+1950,1,2.52%,102.52,23.50
+1950,2,1.38%,103.93,23.50
+1950,3,3.39%,107.45,23.60
+1950,4,3.91%,111.66,23.60
+1950,5,2.16%,114.08,23.70
+1950,6,-6.72%,106.41,23.80
+1950,7,6.64%,113.47,24.10
+1950,8,4.11%,118.13,24.30
+1950,9,4.72%,123.71,24.40
+1950,10,0.38%,124.17,24.60
+1950,11,0.19%,124.41,24.70
+1950,12,8.01%,134.38,25.00
+1951,1,4.31%,140.17,25.40
+1951,2,-1.11%,138.61,25.70
+1951,3,1.93%,141.28,25.80
+1951,4,0.63%,142.17,25.80
+1951,5,-1.15%,140.54,25.90
+1951,6,2.37%,143.87,25.90
+1951,7,4.97%,151.01,25.90
+1951,8,3.14%,155.75,25.90
+1951,9,0.03%,155.79,26.10
+1951,10,-2.25%,152.28,26.20
+1951,11,3.61%,157.79,26.40
+1951,12,3.83%,163.83,26.50
+1952,1,-1.33%,161.65,26.50
+1952,2,0.75%,162.86,26.30
+1952,3,0.20%,163.19,26.30
+1952,4,0.46%,163.95,26.40
+1952,5,3.24%,169.26,26.40
+1952,6,3.37%,174.96,26.50
+1952,7,0.88%,176.50,26.70
+1952,8,-1.11%,174.55,26.70
+1952,9,-1.61%,171.74,26.70
+1952,10,3.67%,178.03,26.70
+1952,11,4.51%,186.06,26.70
+1952,12,0.99%,187.90,26.70
+1953,1,-0.77%,186.45,26.60
+1953,2,0.96%,188.23,26.50
+1953,3,-4.47%,179.81,26.60
+1953,4,1.00%,181.62,26.60
+1953,5,-3.11%,175.97,26.70
+1953,6,1.91%,179.34,26.80
+1953,7,0.90%,180.95,26.80
+1953,8,-4.11%,173.52,26.90
+1953,9,3.52%,179.62,26.90
+1953,10,2.71%,184.49,27.00
+1953,11,1.84%,187.88,26.90
+1953,12,3.02%,193.56,26.90
+1954,1,2.68%,198.74,26.90
+1954,2,2.58%,203.87,26.90
+1954,3,4.45%,212.94,26.90
+1954,4,4.42%,222.36,26.80
+1954,5,1.22%,225.08,26.90
+1954,6,4.46%,235.11,26.90
+1954,7,2.39%,240.74,26.90
+1954,8,2.74%,247.34,26.90
+1954,9,2.71%,254.04,26.80
+1954,10,4.30%,264.97,26.80
+1954,11,4.95%,278.10,26.80
+1954,12,2.17%,284.13,26.70
+1955,1,3.70%,294.65,26.70
+1955,2,-0.44%,293.37,26.70
+1955,3,3.81%,304.54,26.70
+1955,4,-0.08%,304.30,26.70
+1955,5,6.15%,323.00,26.70
+1955,6,7.64%,347.69,26.70
+1955,7,-0.30%,346.65,26.80
+1955,8,4.82%,363.34,26.80
+1955,9,-4.72%,346.18,26.90
+1955,10,7.07%,370.64,26.90
+1955,11,1.24%,375.22,26.90
+1955,12,-2.39%,366.26,26.80
+1956,1,0.95%,369.74,26.80
+1956,2,7.21%,396.39,26.80
+1956,3,1.48%,402.26,26.80
+1956,4,-2.84%,390.84,26.90
+1956,5,-0.26%,389.82,27.00
+1956,6,5.75%,412.23,27.20
+1956,7,-0.28%,411.06,27.40
+1956,8,-3.09%,398.36,27.30
+1956,9,-0.95%,394.56,27.40
+1956,10,-0.71%,391.75,27.50
+1956,11,1.81%,398.84,27.50
+1956,12,-1.86%,391.41,27.60
+1957,1,-4.00%,375.77,27.60
+1957,2,1.62%,381.86,27.70
+1957,3,2.64%,391.95,27.80
+1957,4,4.16%,408.26,27.90
+1957,5,1.95%,416.24,28.00
+1957,6,2.32%,425.90,28.10
+1957,7,-5.21%,403.74,28.30
+1957,8,-3.74%,388.64,28.30
+1957,9,-5.90%,365.72,28.30
+1957,10,-1.80%,359.14,28.30
+1957,11,0.32%,360.28,28.40
+1957,12,2.33%,368.67,28.40
+1958,1,0.70%,371.26,28.60
+1958,2,2.42%,380.24,28.60
+1958,3,0.90%,383.65,28.80
+1958,4,3.56%,397.29,28.90
+1958,5,2.74%,408.16,28.90
+1958,6,3.07%,420.70,28.90
+1958,7,4.05%,437.75,29.00
+1958,8,2.94%,450.64,28.90
+1958,9,4.36%,470.28,28.90
+1958,10,3.33%,485.92,28.90
+1958,11,2.16%,496.43,29.00
+1958,12,4.25%,517.55,28.90
+1959,1,-1.27%,511.01,29.00
+1959,2,2.81%,525.35,28.90
+1959,3,1.94%,535.52,28.90
+1959,4,1.77%,544.97,29.00
+1959,5,-0.61%,541.67,29.00
+1959,6,4.23%,564.57,29.10
+1959,7,-0.32%,562.77,29.20
+1959,8,-3.70%,541.93,29.20
+1959,9,0.18%,542.89,29.30
+1959,10,0.67%,546.52,29.40
+1959,11,3.46%,565.45,29.40
+1959,12,-1.49%,557.05,29.40
+1960,1,-3.61%,536.94,29.30
+1960,2,-1.08%,531.15,29.40
+1960,3,1.58%,539.57,29.40
+1960,4,-0.62%,536.20,29.50
+1960,5,3.99%,557.58,29.50
+1960,6,-2.20%,545.34,29.60
+1960,7,1.49%,553.47,29.60
+1960,8,-2.72%,538.41,29.60
+1960,9,-1.67%,529.39,29.60
+1960,10,3.54%,548.14,29.80
+1960,11,2.69%,562.89,29.80
+1960,12,5.43%,593.44,29.80
+1961,1,4.37%,619.39,29.80
+1961,2,3.40%,640.43,29.80
+1961,3,2.92%,659.13,29.80
+1961,4,1.26%,667.46,29.80
+1961,5,-1.08%,660.25,29.80
+1961,6,-0.03%,660.06,29.80
+1961,7,3.84%,685.40,30.00
+1961,8,-0.54%,681.69,29.90
+1961,9,1.34%,690.84,30.00
+1961,10,4.77%,723.81,30.00
+1961,11,1.16%,732.23,30.00
+1961,12,-3.49%,706.69,30.00
+1962,1,1.91%,720.19,30.00
+1962,2,0.34%,722.64,30.10
+1962,3,-2.94%,701.36,30.10
+1962,4,-7.19%,650.97,30.20
+1962,5,-11.41%,576.68,30.20
+1962,6,2.72%,592.35,30.20
+1962,7,3.02%,610.25,30.30
+1962,8,-0.59%,606.63,30.30
+1962,9,-2.86%,589.31,30.40
+1962,10,7.20%,631.74,30.40
+1962,11,4.62%,660.95,30.40
+1962,12,4.15%,688.36,30.40
+1963,1,1.60%,699.34,30.40
+1963,2,-0.11%,698.58,30.40
+1963,3,4.98%,733.36,30.50
+1963,4,2.27%,750.00,30.50
+1963,5,0.22%,751.63,30.50
+1963,6,-1.22%,742.45,30.60
+1963,7,3.03%,764.95,30.70
+1963,8,2.89%,787.08,30.70
+1963,9,0.50%,791.02,30.70
+1963,10,-0.31%,788.59,30.80
+1963,11,2.39%,807.47,30.80
+1963,12,3.33%,834.36,30.90
+1964,1,1.48%,846.71,30.90
+1964,2,2.07%,864.24,30.90
+1964,3,1.69%,878.87,30.90
+1964,4,1.22%,889.60,30.90
+1964,5,-0.35%,886.48,30.90
+1964,6,3.96%,921.59,31.00
+1964,7,-1.23%,910.30,31.10
+1964,8,1.97%,928.19,31.00
+1964,9,1.97%,946.48,31.10
+1964,10,0.94%,955.34,31.10
+1964,11,-1.49%,941.11,31.20
+1964,12,2.82%,967.65,31.20
+1965,1,0.98%,977.09,31.20
+1965,2,0.34%,980.37,31.20
+1965,3,1.56%,995.64,31.30
+1965,4,1.73%,"1,012.89",31.40
+1965,5,-4.51%,967.23,31.40
+1965,6,0.10%,968.23,31.60
+1965,7,2.12%,988.74,31.60
+1965,8,3.60%,"1,024.30",31.60
+1965,9,2.50%,"1,049.87",31.60
+1965,10,1.08%,"1,061.17",31.70
+1965,11,-0.21%,"1,058.92",31.70
+1965,12,1.98%,"1,079.90",31.80
+1966,1,-0.43%,"1,075.25",31.80
+1966,2,-3.86%,"1,033.72",32.00
+1966,3,3.32%,"1,068.05",32.10
+1966,4,-5.01%,"1,014.56",32.30
+1966,5,-0.56%,"1,008.89",32.30
+1966,6,0.02%,"1,009.07",32.40
+1966,7,-5.77%,950.85,32.50
+1966,8,-3.22%,920.19,32.70
+1966,9,-0.56%,915.00,32.70
+1966,10,5.32%,963.64,32.90
+1966,11,0.72%,970.54,32.90
+1966,12,4.13%,"1,010.62",32.90
+1967,1,3.73%,"1,048.32",32.90
+1967,2,2.63%,"1,075.93",32.90
+1967,3,1.99%,"1,097.37",33.00
+1967,4,2.06%,"1,119.95",33.10
+1967,5,-0.99%,"1,108.84",33.20
+1967,6,1.99%,"1,130.93",33.30
+1967,7,1.85%,"1,151.87",33.40
+1967,8,1.65%,"1,170.92",33.50
+1967,9,0.10%,"1,172.06",33.60
+1967,10,-2.88%,"1,138.29",33.70
+1967,11,3.11%,"1,173.71",33.80
+1967,12,-0.02%,"1,173.50",33.90
+1968,1,-4.26%,"1,123.55",34.10
+1968,2,-1.56%,"1,106.03",34.20
+1968,3,7.66%,"1,190.77",34.30
+1968,4,2.56%,"1,221.23",34.40
+1968,5,2.94%,"1,257.14",34.50
+1968,6,0.05%,"1,257.75",34.70
+1968,7,-1.93%,"1,233.43",34.90
+1968,8,3.51%,"1,276.69",35.00
+1968,9,2.72%,"1,311.39",35.10
+1968,10,1.79%,"1,334.80",35.30
+1968,11,1.29%,"1,351.96",35.40
+1968,12,-3.99%,"1,298.08",35.50
+1969,1,-0.24%,"1,294.99",35.60
+1969,2,-1.91%,"1,270.20",35.80
+1969,3,2.27%,"1,299.09",36.10
+1969,4,3.51%,"1,344.73",36.30
+1969,5,-4.97%,"1,277.88",36.40
+1969,6,-4.21%,"1,224.14",36.60
+1969,7,-0.28%,"1,220.67",36.80
+1969,8,0.63%,"1,228.34",37.00
+1969,9,1.35%,"1,244.88",37.10
+1969,10,1.00%,"1,257.30",37.30
+1969,11,-5.03%,"1,194.09",37.50
+1969,12,-0.59%,"1,187.06",37.70
+1970,1,-3.20%,"1,149.12",37.80
+1970,2,2.01%,"1,172.24",38.00
+1970,3,-2.75%,"1,140.03",38.20
+1970,4,-11.20%,"1,012.36",38.50
+1970,5,-0.27%,"1,009.63",38.60
+1970,6,0.52%,"1,014.90",38.80
+1970,7,3.26%,"1,047.94",39.00
+1970,8,6.32%,"1,114.19",39.00
+1970,9,2.49%,"1,141.93",39.20
+1970,10,0.21%,"1,144.29",39.40
+1970,11,7.16%,"1,226.20",39.60
+1970,12,4.11%,"1,276.60",39.80
+1971,1,4.15%,"1,329.60",39.80
+1971,2,2.83%,"1,367.25",39.90
+1971,3,3.67%,"1,417.48",40.00
+1971,4,-1.11%,"1,401.78",40.10
+1971,5,-1.60%,"1,379.40",40.30
+1971,6,-0.46%,"1,373.02",40.60
+1971,7,-1.52%,"1,352.19",40.70
+1971,8,2.49%,"1,385.81",40.80
+1971,9,-1.86%,"1,359.98",40.80
+1971,10,-4.37%,"1,300.53",40.90
+1971,11,7.16%,"1,393.69",40.90
+1971,12,4.42%,"1,455.33",41.10
+1972,1,2.09%,"1,485.70",41.10
+1972,2,2.62%,"1,524.62",41.30
+1972,3,1.26%,"1,543.82",41.40
+1972,4,-0.78%,"1,531.84",41.50
+1972,5,0.52%,"1,539.74",41.60
+1972,6,-0.50%,"1,531.99",41.70
+1972,7,3.78%,"1,589.95",41.90
+1972,8,-1.21%,"1,570.71",42.00
+1972,9,0.42%,"1,577.26",42.10
+1972,10,5.25%,"1,660.14",42.30
+1972,11,2.31%,"1,698.51",42.40
+1972,12,0.99%,"1,715.31",42.50
+1973,1,-3.33%,"1,658.28",42.60
+1973,2,-1.35%,"1,635.97",42.90
+1973,3,-1.63%,"1,609.25",43.30
+1973,4,-2.57%,"1,567.89",43.60
+1973,5,-1.99%,"1,536.70",43.90
+1973,6,1.21%,"1,555.29",44.20
+1973,7,-1.64%,"1,529.86",44.30
+1973,8,2.00%,"1,560.38",45.10
+1973,9,4.24%,"1,626.47",45.20
+1973,10,-6.85%,"1,515.01",45.60
+1973,11,-6.81%,"1,411.91",45.90
+1973,12,1.70%,"1,435.92",46.20
+1974,1,-2.47%,"1,400.41",46.60
+1974,2,4.57%,"1,464.47",47.20
+1974,3,-4.82%,"1,393.94",47.80
+1974,4,-2.71%,"1,356.22",48.00
+1974,5,0.46%,"1,362.42",48.60
+1974,6,-11.35%,"1,207.83",49.00
+1974,7,-3.76%,"1,162.36",49.40
+1974,8,-10.01%,"1,045.96",50.00
+1974,9,2.38%,"1,070.83",50.60
+1974,10,3.74%,"1,110.91",51.10
+1974,11,-6.09%,"1,043.24",51.50
+1974,12,8.63%,"1,133.30",51.90
+1975,1,10.81%,"1,255.78",52.10
+1975,2,4.97%,"1,318.24",52.50
+1975,3,1.49%,"1,337.84",52.70
+1975,4,6.71%,"1,427.64",52.90
+1975,5,2.89%,"1,468.97",53.20
+1975,6,0.43%,"1,475.31",53.60
+1975,7,-7.00%,"1,372.10",54.20
+1975,8,-0.85%,"1,360.40",54.30
+1975,9,4.97%,"1,428.03",54.60
+1975,10,2.04%,"1,457.18",54.90
+1975,11,-1.18%,"1,439.99",55.30
+1975,12,9.55%,"1,577.44",55.50
+1976,1,4.18%,"1,643.35",55.60
+1976,2,0.80%,"1,656.54",55.80
+1976,3,1.10%,"1,674.69",55.90
+1976,4,-0.38%,"1,668.27",56.10
+1976,5,0.90%,"1,683.29",56.50
+1976,6,2.67%,"1,728.16",56.80
+1976,7,-0.56%,"1,718.47",57.10
+1976,8,2.44%,"1,760.36",57.40
+1976,9,-3.11%,"1,705.65",57.60
+1976,10,-0.37%,"1,699.39",57.90
+1976,11,3.79%,"1,763.74",58.00
+1976,12,-0.54%,"1,754.26",58.20
+1977,1,-2.37%,"1,712.71",58.50
+1977,2,-0.05%,"1,711.79",59.10
+1977,3,-1.19%,"1,691.35",59.50
+1977,4,0.06%,"1,692.44",60.00
+1977,5,0.90%,"1,707.67",60.30
+1977,6,1.28%,"1,729.57",60.70
+1977,7,-2.08%,"1,693.62",61.00
+1977,8,-1.18%,"1,673.71",61.20
+1977,9,-2.20%,"1,636.93",61.40
+1977,10,0.98%,"1,652.99",61.60
+1977,11,-0.08%,"1,651.66",61.90
+1977,12,-3.39%,"1,595.67",62.10
+1978,1,-0.97%,"1,580.16",62.50
+1978,2,0.27%,"1,584.35",62.90
+1978,3,4.83%,"1,660.88",63.40
+1978,4,5.50%,"1,752.30",63.90
+1978,5,0.67%,"1,764.10",64.50
+1978,6,-0.06%,"1,763.00",65.20
+1978,7,7.33%,"1,892.20",65.70
+1978,8,0.40%,"1,899.76",66.00
+1978,9,-2.77%,"1,847.07",66.50
+1978,10,-5.44%,"1,746.63",67.10
+1978,11,1.92%,"1,780.22",67.40
+1978,12,4.19%,"1,854.73",67.70
+1979,1,-1.06%,"1,835.12",68.30
+1979,2,2.34%,"1,878.09",69.10
+1979,3,2.43%,"1,923.74",69.80
+1979,4,-1.89%,"1,887.32",70.60
+1979,5,2.42%,"1,932.95",71.50
+1979,6,1.42%,"1,960.42",72.30
+1979,7,5.01%,"2,058.72",73.10
+1979,8,1.54%,"2,090.43",73.80
+1979,9,-3.35%,"2,020.35",74.60
+1979,10,-0.32%,"2,013.84",75.20
+1979,11,4.40%,"2,102.52",75.90
+1979,12,3.31%,"2,172.17",76.70
+1980,1,4.40%,"2,267.66",77.80
+1980,2,-8.78%,"2,068.60",78.90
+1980,3,-1.16%,"2,044.57",80.10
+1980,4,5.04%,"2,147.53",81.00
+1980,5,6.86%,"2,294.91",81.80
+1980,6,4.97%,"2,408.96",82.70
+1980,7,3.50%,"2,493.38",82.70
+1980,8,2.84%,"2,564.09",83.30
+1980,9,3.32%,"2,649.34",84.00
+1980,10,4.61%,"2,771.60",84.80
+1980,11,-1.24%,"2,737.10",85.50
+1980,12,0.01%,"2,737.37",86.30
+1981,1,-3.07%,"2,653.33",87.00
+1981,2,4.14%,"2,763.27",87.90
+1981,3,1.29%,"2,799.02",88.50
+1981,4,-1.62%,"2,753.75",89.10
+1981,5,0.86%,"2,777.37",89.80
+1981,6,-2.02%,"2,721.37",90.60
+1981,7,0.80%,"2,743.21",91.60
+1981,8,-8.30%,"2,515.45",92.30
+1981,9,1.73%,"2,558.90",93.20
+1981,10,3.04%,"2,636.78",93.40
+1981,11,1.18%,"2,667.88",93.70
+1981,12,-4.80%,"2,539.71",94.00
+1982,1,-1.91%,"2,491.10",94.30
+1982,2,-2.74%,"2,422.73",94.60
+1982,3,5.47%,"2,555.24",94.50
+1982,4,0.57%,"2,569.80",94.90
+1982,5,-5.27%,"2,434.35",95.80
+1982,6,0.24%,"2,440.29",97.00
+1982,7,0.79%,"2,459.66",97.50
+1982,8,12.10%,"2,757.19",97.70
+1982,9,8.88%,"3,002.07",97.90
+1982,10,4.50%,"3,137.16",98.20
+1982,11,1.36%,"3,179.69",98.00
+1982,12,3.93%,"3,304.51",97.60
+1983,1,2.13%,"3,374.90",97.80
+1983,2,3.87%,"3,505.36",97.90
+1983,3,4.20%,"3,652.49",97.90
+1983,4,4.42%,"3,814.08",98.60
+1983,5,1.75%,"3,880.96",99.20
+1983,6,0.71%,"3,908.44",99.50
+1983,7,-2.41%,"3,814.36",99.90
+1983,8,3.31%,"3,940.76",100.20
+1983,9,0.65%,"3,966.29",100.70
+1983,10,-1.14%,"3,921.02",101.00
+1983,11,-0.13%,"3,916.00",101.20
+1983,12,1.58%,"3,977.71",101.30
+1984,1,-5.11%,"3,774.36",101.90
+1984,2,0.44%,"3,791.06",102.40
+1984,3,0.51%,"3,810.29",102.60
+1984,4,-0.25%,"3,800.67",103.10
+1984,5,-1.85%,"3,730.42",103.40
+1984,6,-0.91%,"3,696.53",103.70
+1984,7,9.21%,"4,036.85",104.10
+1984,8,1.41%,"4,093.65",104.50
+1984,9,-0.41%,"4,076.77",105.00
+1984,10,1.29%,"4,129.19",105.30
+1984,11,-0.71%,"4,099.97",105.30
+1984,12,4.70%,"4,292.57",105.30
+1985,1,5.79%,"4,541.00",105.50
+1985,2,-0.48%,"4,519.28",106.00
+1985,3,1.02%,"4,565.59",106.40
+1985,4,2.74%,"4,690.49",106.90
+1985,5,2.51%,"4,808.26",107.30
+1985,6,2.25%,"4,916.31",107.60
+1985,7,-1.85%,"4,825.59",107.80
+1985,8,-1.88%,"4,734.63",108.00
+1985,9,1.50%,"4,805.44",108.30
+1985,10,6.42%,"5,113.97",108.70
+1985,11,5.29%,"5,384.73",109.00
+1985,12,0.75%,"5,425.21",109.30
+1986,1,5.70%,"5,734.30",109.60
+1986,2,6.18%,"6,088.84",109.30
+1986,3,2.74%,"6,255.76",108.80
+1986,4,0.49%,"6,286.53",108.60
+1986,5,3.13%,"6,483.50",108.90
+1986,6,-1.80%,"6,366.54",109.50
+1986,7,2.28%,"6,511.76",109.50
+1986,8,-2.46%,"6,351.81",109.70
+1986,9,-0.09%,"6,346.10",110.20
+1986,10,3.53%,"6,570.31",110.30
+1986,11,1.71%,"6,682.59",110.40
+1986,12,6.67%,"7,128.54",110.50
+1987,1,6.46%,"7,589.18",111.20
+1987,2,4.38%,"7,921.32",111.60
+1987,3,-0.86%,"7,853.48",112.10
+1987,4,0.17%,"7,867.05",112.70
+1987,5,4.50%,"8,220.94",113.10
+1987,6,3.12%,"8,477.61",113.50
+1987,7,6.45%,"9,024.76",113.80
+1987,8,-3.03%,"8,751.27",114.40
+1987,9,-11.85%,"7,713.90",115.00
+1987,10,-12.30%,"6,764.83",115.30
+1987,11,-1.33%,"6,674.54",115.40
+1987,12,4.25%,"6,957.98",115.40
+1988,1,3.33%,"7,189.58",115.70
+1988,2,3.23%,"7,421.95",116.00
+1988,3,-0.89%,"7,356.19",116.50
+1988,4,-2.19%,"7,195.22",117.10
+1988,5,6.00%,"7,626.80",117.50
+1988,6,-0.31%,"7,603.39",118.00
+1988,7,-1.72%,"7,472.73",118.50
+1988,8,1.93%,"7,616.74",119.00
+1988,9,3.80%,"7,906.30",119.80
+1988,10,-2.02%,"7,746.57",120.20
+1988,11,2.33%,"7,926.75",120.30
+1988,12,3.51%,"8,205.19",120.50
+1989,1,3.30%,"8,475.95",121.10
+1989,2,-0.16%,"8,462.25",121.60
+1989,3,3.56%,"8,763.91",122.30
+1989,4,4.12%,"9,124.57",123.10
+1989,5,3.39%,"9,434.14",123.80
+1989,6,2.80%,"9,698.31",124.10
+1989,7,4.69%,"10,153.23",124.40
+1989,8,0.46%,"10,199.48",124.60
+1989,9,0.29%,"10,228.68",125.00
+1989,10,-1.81%,"10,043.18",125.60
+1989,11,2.74%,"10,318.03",125.90
+1989,12,-2.21%,"10,089.88",126.10
+1990,1,-2.53%,"9,834.89",127.40
+1990,2,2.71%,"10,101.13",128.00
+1990,3,0.20%,"10,120.93",128.70
+1990,4,3.85%,"10,510.68",128.90
+1990,5,3.17%,"10,843.86",129.20
+1990,6,0.17%,"10,862.27",129.90
+1990,7,-7.86%,"10,008.36",130.40
+1990,8,-4.34%,"9,573.89",131.60
+1990,9,-2.32%,"9,352.18",132.70
+1990,10,2.98%,"9,631.23",133.50
+1990,11,4.59%,"10,072.98",133.80
+1990,12,-0.69%,"10,003.96",133.80
+1991,1,11.61%,"11,165.10",134.60
+1991,2,3.04%,"11,505.04",134.80
+1991,3,2.26%,"11,764.92",135.00
+1991,4,-0.18%,"11,743.87",135.20
+1991,5,0.35%,"11,784.62",135.60
+1991,6,0.78%,"11,876.60",136.00
+1991,7,2.68%,"12,194.77",136.20
+1991,8,-0.30%,"12,157.80",136.60
+1991,9,0.18%,"12,179.89",137.20
+1991,10,0.02%,"12,181.81",137.40
+1991,11,0.94%,"12,295.73",137.80
+1991,12,7.36%,"13,200.45",137.90
+1992,1,-0.60%,"13,121.14",138.10
+1992,2,-1.01%,"12,988.30",138.60
+1992,3,0.26%,"13,022.63",139.30
+1992,4,2.07%,"13,291.98",139.50
+1992,5,-1.33%,"13,115.32",139.70
+1992,6,1.91%,"13,366.10",140.20
+1992,7,0.94%,"13,491.97",140.50
+1992,8,0.38%,"13,543.00",140.90
+1992,9,-1.18%,"13,382.91",141.30
+1992,10,2.76%,"13,751.86",141.80
+1992,11,3.27%,"14,201.71",142.00
+1992,12,0.14%,"14,222.01",141.90
+1993,1,1.72%,"14,467.23",142.60
+1993,2,2.15%,"14,778.30",143.10
+1993,3,-1.34%,"14,580.01",143.60
+1993,4,0.72%,"14,685.68",144.00
+1993,5,0.87%,"14,812.73",144.20
+1993,6,0.06%,"14,821.77",144.40
+1993,7,1.76%,"15,083.00",144.40
+1993,8,1.35%,"15,287.37",144.80
+1993,9,1.24%,"15,477.22",145.10
+1993,10,0.01%,"15,478.39",145.70
+1993,11,0.89%,"15,615.71",145.80
+1993,12,1.74%,"15,886.78",145.80
+1994,1,-0.08%,"15,874.76",146.20
+1994,2,-1.42%,"15,648.73",146.70
+1994,3,-3.35%,"15,125.06",147.20
+1994,4,1.06%,"15,285.12",147.40
+1994,5,1.11%,"15,454.50",147.50
+1994,6,-0.52%,"15,374.31",148.00
+1994,7,3.08%,"15,848.16",148.40
+1994,8,0.82%,"15,977.71",149.00
+1994,9,-0.44%,"15,906.77",149.40
+1994,10,-0.37%,"15,847.93",149.50
+1994,11,-1.03%,"15,685.38",149.70
+1994,12,2.45%,"16,069.85",149.70
+1995,1,3.82%,"16,683.57",150.30
+1995,2,2.56%,"17,110.37",150.90
+1995,3,3.22%,"17,660.56",151.40
+1995,4,3.35%,"18,251.80",151.90
+1995,5,3.18%,"18,831.91",152.20
+1995,6,3.55%,"19,499.97",152.50
+1995,7,0.51%,"19,600.03",152.50
+1995,8,3.72%,"20,328.70",152.90
+1995,9,0.91%,"20,514.21",153.20
+1995,10,2.36%,"20,998.01",153.70
+1995,11,3.39%,"21,709.66",153.60
+1995,12,0.16%,"21,744.96",153.50
+1996,1,5.90%,"23,028.87",154.40
+1996,2,-0.20%,"22,982.65",154.90
+1996,3,0.20%,"23,027.93",155.70
+1996,4,2.35%,"23,570.20",156.30
+1996,5,1.28%,"23,871.57",156.60
+1996,6,-3.48%,"23,041.66",156.70
+1996,7,3.08%,"23,750.36",157.00
+1996,8,2.02%,"24,231.01",157.30
+1996,9,4.12%,"25,229.20",157.80
+1996,10,5.05%,"26,503.80",158.30
+1996,11,1.20%,"26,821.38",158.60
+1996,12,3.26%,"27,695.09",158.60
+1997,1,4.36%,"28,902.92",159.10
+1997,2,-0.62%,"28,722.66",159.60
+1997,3,-3.41%,"27,744.58",160.00
+1997,4,9.22%,"30,302.03",160.20
+1997,5,5.34%,"31,919.20",160.10
+1997,6,5.74%,"33,750.06",160.30
+1997,7,0.35%,"33,867.44",160.50
+1997,8,1.19%,"34,271.14",160.80
+1997,9,1.65%,"34,835.03",161.20
+1997,10,-1.15%,"34,433.71",161.60
+1997,11,2.63%,"35,340.91",161.50
+1997,12,0.24%,"35,424.70",161.30
+1998,1,6.40%,"37,692.65",161.60
+1998,2,5.31%,"39,695.21",161.90
+1998,3,3.41%,"41,047.10",162.20
+1998,4,-0.22%,"40,956.03",162.50
+1998,5,0.12%,"41,003.73",162.80
+1998,6,4.47%,"42,835.64",163.00
+1998,7,-6.97%,"39,849.56",163.20
+1998,8,-4.90%,"37,897.55",163.40
+1998,9,1.29%,"38,386.75",163.60
+1998,10,10.97%,"42,599.46",164.00
+1998,11,4.10%,"44,347.79",164.00
+1998,12,5.05%,"46,586.33",163.90
+1999,1,-0.07%,"46,555.25",164.30
+1999,2,2.92%,"47,916.30",164.50
+1999,3,4.25%,"49,952.75",165.00
+1999,4,-0.10%,"49,903.38",166.20
+1999,5,-0.61%,"49,598.09",166.20
+1999,6,4.52%,"51,841.11",166.20
+1999,7,-3.77%,"49,884.42",166.70
+1999,8,-0.60%,"49,586.11",167.10
+1999,9,-1.27%,"48,955.14",167.90
+1999,10,7.11%,"52,433.87",168.20
+1999,11,2.81%,"53,906.59",168.30
+1999,12,-0.12%,"53,842.48",168.30
+2000,1,-2.48%,"52,508.22",168.80
+2000,2,3.94%,"54,577.55",169.80
+2000,3,1.42%,"55,355.09",171.20
+2000,4,-2.84%,"53,783.68",171.30
+2000,5,3.16%,"55,485.11",171.50
+2000,6,0.85%,"55,956.93",172.40
+2000,7,0.94%,"56,482.76",172.80
+2000,8,-1.08%,"55,872.94",172.80
+2000,9,-5.21%,"52,959.60",173.70
+2000,10,-0.77%,"52,550.45",174.00
+2000,11,-3.32%,"50,805.74",174.10
+2000,12,0.46%,"51,036.91",174.00
+2001,1,-2.14%,"49,946.63",175.10
+2001,2,-9.08%,"45,411.52",175.80
+2001,3,0.45%,"45,615.28",176.20
+2001,4,6.88%,"48,753.31",176.90
+2001,5,-2.39%,"47,588.76",177.70
+2001,6,-2.66%,"46,322.79",178.00
+2001,7,-2.05%,"45,375.10",177.50
+2001,8,-11.25%,"40,271.62",177.50
+2001,9,3.18%,"41,553.88",178.30
+2001,10,5.05%,"43,653.66",177.70
+2001,11,1.47%,"44,293.64",177.40
+2001,12,-0.30%,"44,161.78",176.70
+2002,1,-3.35%,"42,681.14",177.10
+2002,2,4.95%,"44,791.84",177.80
+2002,3,-3.51%,"43,217.66",178.80
+2002,4,-2.82%,"41,998.76",179.80
+2002,5,-5.92%,"39,512.03",179.80
+2002,6,-10.76%,"35,261.13",179.90
+2002,7,1.14%,"35,662.68",180.10
+2002,8,-4.76%,"33,965.95",180.70
+2002,9,-1.37%,"33,501.62",181.00
+2002,10,6.63%,"35,721.29",181.30
+2002,11,-1.04%,"35,351.56",181.30
+2002,12,-0.22%,"35,272.89",180.90
+2003,1,-6.41%,"33,010.19",181.70
+2003,2,1.31%,"33,441.93",183.10
+2003,3,5.29%,"35,209.63",184.20
+2003,4,5.31%,"37,080.04",183.80
+2003,5,5.70%,"39,195.15",183.50
+2003,6,0.60%,"39,428.72",183.70
+2003,7,-0.17%,"39,363.14",183.90
+2003,8,3.16%,"40,607.48",184.60
+2003,9,2.03%,"41,430.93",185.20
+2003,10,1.21%,"41,932.48",185.00
+2003,11,3.06%,"43,217.21",184.50
+2003,12,4.93%,"45,349.97",184.30
+2004,1,1.09%,"45,842.77",185.20
+2004,2,-1.57%,"45,125.24",186.20
+2004,3,0.97%,"45,562.11",187.40
+2004,4,-2.56%,"44,393.79",188.00
+2004,5,2.86%,"45,662.42",189.10
+2004,6,-2.24%,"44,640.14",189.70
+2004,7,-1.39%,"44,020.72",189.40
+2004,8,2.78%,"45,245.65",189.50
+2004,9,0.10%,"45,292.07",189.90
+2004,10,4.77%,"47,454.27",190.90
+2004,11,2.73%,"48,748.56",191.00
+2004,12,-1.35%,"48,090.83",190.30
+2005,1,1.68%,"48,899.34",190.70
+2005,2,-0.26%,"48,774.36",191.80
+2005,3,-2.41%,"47,599.42",193.30
+2005,4,1.34%,"48,235.29",194.60
+2005,5,2.18%,"49,287.16",194.40
+2005,6,1.81%,"50,178.17",194.50
+2005,7,0.31%,"50,333.73",195.40
+2005,8,0.28%,"50,474.51",196.40
+2005,9,-2.62%,"49,149.94",198.80
+2005,10,3.96%,"51,097.04",199.20
+2005,11,2.14%,"52,192.63",197.60
+2005,12,1.47%,"52,958.17",196.80
+2006,1,-0.02%,"52,949.36",198.30
+2006,2,1.49%,"53,736.26",198.70
+2006,3,0.80%,"54,165.26",199.80
+2006,4,-0.79%,"53,739.17",201.50
+2006,5,-2.71%,"52,285.10",202.50
+2006,6,0.72%,"52,661.58",202.90
+2006,7,2.29%,"53,868.45",203.50
+2006,8,2.53%,"55,231.96",203.90
+2006,9,3.62%,"57,229.10",202.90
+2006,10,2.00%,"58,374.62",201.80
+2006,11,2.15%,"59,628.66",201.50
+2006,12,0.69%,"60,041.78",201.80
+2007,1,1.60%,"61,000.08",202.42
+2007,2,-2.47%,"59,491.00",203.50
+2007,3,4.18%,"61,977.88",205.35
+2007,4,3.39%,"64,080.02",206.69
+2007,5,0.34%,"64,301.03",207.95
+2007,6,0.57%,"64,670.52",208.35
+2007,7,-4.20%,"61,953.64",208.30
+2007,8,3.07%,"63,858.55",207.92
+2007,9,2.99%,"65,768.97",208.49
+2007,10,-4.81%,"62,607.91",208.94
+2007,11,1.24%,"63,383.13",210.18
+2007,12,-6.64%,"59,177.54",210.04
+2008,1,-1.56%,"58,252.02",211.08
+2008,2,-2.63%,"56,721.95",211.69
+2008,3,4.24%,"59,129.12",213.53
+2008,4,2.56%,"60,644.36",214.82
+2008,5,-4.25%,"58,069.05",216.63
+2008,6,-6.08%,"54,539.34",218.82
+2008,7,2.11%,"55,690.41",219.96
+2008,8,-4.85%,"52,990.80",219.09
+2008,9,-20.19%,"42,290.06",218.78
+2008,10,-8.61%,"38,650.85",216.57
+2008,11,-0.35%,"38,515.10",212.43
+2008,12,-1.10%,"38,093.15",210.23
+2009,1,-6.70%,"35,539.95",211.14
+2009,2,-5.69%,"33,518.64",212.19
+2009,3,12.32%,"37,648.72",212.71
+2009,4,6.66%,"40,156.06",213.24
+2009,5,2.87%,"41,308.08",213.86
+2009,6,1.28%,"41,835.85",215.69
+2009,7,8.12%,"45,233.23",215.35
+2009,8,3.65%,"46,884.40",215.83
+2009,9,2.40%,"48,011.09",215.97
+2009,10,2.09%,"49,016.59",216.18
+2009,11,2.23%,"50,107.63",216.33
+2009,12,1.36%,"50,787.58",215.95
+2010,1,-2.90%,"49,315.51",216.69
+2010,2,5.94%,"52,246.35",216.74
+2010,3,4.09%,"54,382.15",217.63
+2010,4,-5.88%,"51,183.17",218.01
+2010,5,-3.54%,"49,369.46",218.18
+2010,6,-0.16%,"49,290.93",217.97
+2010,7,0.86%,"49,716.61",218.01
+2010,8,3.37%,"51,392.64",218.31
+2010,9,4.58%,"53,745.10",218.44
+2010,10,2.49%,"55,083.85",218.71
+2010,11,3.71%,"57,129.52",218.80
+2010,12,3.46%,"59,107.45",219.18
+2011,1,3.15%,"60,969.85",220.22
+2011,2,-1.11%,"60,291.58",221.31
+2011,3,2.22%,"61,630.65",223.47
+2011,4,0.66%,"62,036.94",224.91
+2011,5,-3.66%,"59,764.77",225.96
+2011,6,3.10%,"61,618.52",225.72
+2011,7,-10.40%,"55,209.79",225.92
+2011,8,-0.79%,"54,774.05",226.55
+2011,9,3.02%,"56,427.63",226.89
+2011,10,1.77%,"57,424.77",226.42
+2011,11,1.55%,"58,317.59",226.23
+2011,12,4.78%,"61,106.66",225.67
+2012,1,4.16%,"63,650.29",226.67
+2012,2,2.88%,"65,485.86",227.66
+2012,3,-0.04%,"65,460.84",229.39
+2012,4,-3.09%,"63,437.47",230.09
+2012,5,-1.15%,"62,706.41",229.82
+2012,6,2.92%,"64,538.12",229.48
+2012,7,3.39%,"66,724.48",229.10
+2012,8,3.02%,"68,740.34",230.38
+2012,9,-0.22%,"68,591.08",231.41
+2012,10,-2.84%,"66,644.81",231.32
+2012,11,2.18%,"68,094.69",230.22
+2012,12,4.27%,"71,001.49",229.60
+2013,1,2.33%,"72,657.97",230.28
+2013,2,2.72%,"74,636.05",232.17
+2013,3,1.45%,"75,721.11",232.77
+2013,4,4.57%,"79,184.79",232.53
+2013,5,-1.12%,"78,299.69",232.95
+2013,6,3.25%,"80,847.93",233.50
+2013,7,0.25%,"81,052.09",233.60
+2013,8,1.19%,"82,018.61",233.88
+2013,9,2.12%,"83,755.40",234.15
+2013,10,3.86%,"86,988.35",233.55
+2013,11,1.52%,"88,312.02",233.07
+2013,12,0.97%,"89,166.71",233.05
+2014,1,-0.13%,"89,050.76",233.92
+2014,2,2.72%,"91,474.96",234.78
+2014,3,0.20%,"91,659.49",236.29
+2014,4,1.53%,"93,063.75",237.07
+2014,5,3.20%,"96,038.36",237.90
+2014,6,1.50%,"97,474.92",238.34
+2014,7,-0.43%,"97,058.75",238.25
+2014,8,1.78%,"98,784.49",237.85
+2014,9,-2.65%,"96,170.08",238.03
+2014,10,5.71%,"101,657.21",237.43
+2014,11,0.63%,"102,301.60",236.15
+2014,12,-1.11%,"101,166.00",234.81
+2015,1,2.83%,"104,026.37",233.71
+2015,2,0.06%,"104,083.96",234.72
+2015,3,0.88%,"104,998.25",236.12
+2015,4,0.98%,"106,026.08",236.60
+2015,5,-0.44%,"105,564.33",237.81
+2015,6,-0.08%,"105,480.27",238.64
+2015,7,-2.42%,"102,923.01",238.65
+2015,8,-4.51%,"98,284.17",238.32
+2015,9,4.32%,"102,527.22",237.95
+2015,10,2.93%,"105,533.80",237.84
+2015,11,-1.10%,"104,369.79",237.34
+2015,12,-6.42%,"97,669.65",236.53
+2016,1,-0.55%,"97,132.55",236.92
+2016,2,6.36%,"103,312.83",237.11
+2016,3,2.83%,"106,237.89",238.13
+2016,4,-0.30%,"105,914.54",239.26
+2016,5,1.07%,"107,044.10",240.23
+2016,6,3.30%,"110,573.82",241.02
+2016,7,1.20%,"111,899.88",240.63
+2016,8,-0.44%,"111,409.01",240.85
+2016,9,-0.51%,"110,845.30",241.43
+2016,10,1.20%,"112,176.73",241.73
+2016,11,3.95%,"116,603.19",241.35
+2016,12,1.44%,"118,279.51",241.43
+2017,1,2.58%,"121,326.92",242.84
+2017,2,1.75%,"123,449.24",243.60
+2017,3,-0.15%,"123,259.12",243.80
+2017,4,1.69%,"125,345.13",244.52
+2017,5,1.78%,"127,571.79",244.73
+2017,6,0.99%,"128,832.05",244.96
+2017,7,0.25%,"129,151.31",244.79
+2017,8,1.65%,"131,286.52",245.52
+2017,9,2.73%,"134,876.94",246.82
+2017,10,1.59%,"137,020.90",246.66
+2017,11,2.88%,"140,971.88",246.67
+2017,12,4.86%,"147,825.79",246.52
+2018,1,-2.89%,"143,558.52",247.87
+2018,2,0.06%,"143,651.23",248.99
+2018,3,-1.66%,"141,260.92",249.55
+2018,4,1.96%,"144,031.92",250.55
+2018,5,2.11%,"147,075.27",251.59
+2018,6,1.58%,"149,400.15",251.99
+2018,7,2.45%,"153,061.66",252.01
+2018,8,1.68%,"155,632.71",252.15
+2018,9,-3.85%,"149,642.43",252.44
+2018,10,-2.08%,"146,535.69",252.89
+2018,11,-5.56%,"138,384.62",252.04
+2018,12,1.74%,"140,786.48",251.23
+2019,1,5.83%,"148,992.78",251.71
+2019,2,1.95%,"151,895.19",252.78
+2019,3,3.72%,"157,550.59",254.20
+2019,4,-1.53%,"155,137.24",255.55
+2019,5,1.40%,"157,316.53",256.09
+2019,6,3.83%,"163,337.58",256.14
+2019,7,-3.13%,"158,217.90",256.57
+2019,8,3.09%,"163,099.28",256.56
+2019,9,0.01%,"163,115.27",256.76
+2019,10,4.43%,"170,347.30",257.35
+2019,11,2.47%,"174,553.72",257.21
+2019,12,3.35%,"180,394.98",256.97
+2020,1,0.12%,"180,615.20",257.97
+2020,2,-18.92%,"146,446.94",258.68
+2020,3,4.32%,"152,771.42",258.12
+2020,4,5.89%,"161,765.63",256.39
+2020,5,6.51%,"172,293.78",256.39
+2020,6,3.48%,"178,283.46",257.80
+2020,7,5.89%,"188,790.61",259.10
+2020,8,-0.63%,"187,606.89",259.92
+2020,9,1.73%,"190,844.98",260.28
+2020,10,3.95%,"198,391.22",260.39
+2020,11,4.26%,"206,842.84",260.23
+2020,12,2.80%,"212,624.72",260.47
+2021,1,2.49%,"217,922.32",261.58
+2021,2,0.82%,"219,712.25",263.01
+2021,3,6.02%,"232,942.19",264.88
+2021,4,0.76%,"234,713.09",267.05
+2021,5,1.81%,"238,962.39",269.20
+2021,6,3.07%,"246,294.24",271.70
+2021,7,2.19%,"251,676.16",273.00
+2021,8,-0.08%,"251,463.50",273.57
+2021,9,0.45%,"252,600.56",274.31
+2021,10,4.74%,"264,585.81",276.59
+2021,11,0.27%,"265,288.03",277.95
+2021,12,-2.05%,"259,844.44",278.80
+2022,1,-2.90%,"252,302.28",281.15
+2022,2,-0.89%,"250,050.27",283.72
+2022,3,0.12%,"250,346.08",287.50
+2022,4,-7.87%,"230,637.01",289.11
+2022,5,-3.37%,"222,865.96",292.30
+2022,6,0.46%,"223,901.59",296.31
+2022,7,6.45%,"238,337.40",296.28
+2022,8,-7.28%,"220,992.63",296.17
+2022,9,-3.09%,"214,161.36",296.81
+2022,10,5.29%,"225,479.99",298.01
+2022,11,0.01%,"225,504.42",297.71
+2022,12,1.38%,"228,608.39",296.80
+2023,1,3.15%,"235,802.64",299.17
+2023,2,-2.59%,"229,706.13",300.84
+2023,3,4.00%,"238,885.70",301.84
+2023,4,0.74%,"240,647.94",303.36
+2023,5,4.94%,"252,541.21",304.13
+2023,6,3.88%,"262,329.82",305.11
+2023,7,-1.00%,"259,712.72",305.69
+2023,8,-0.95%,"257,236.16",307.03
+2023,9,-3.04%,"249,423.09",307.79
+2023,10,4.60%,"260,900.85",307.67
+2023,11,5.18%,"274,403.12",307.05
+2023,12,2.91%,"282,393.29",306.75
+2024,1,4.20%,"294,251.75",308.42
+2024,2,3.28%,"303,909.44",310.33
+2024,3,-1.01%,"300,842.61",312.33
+2024,4,2.52%,"308,413.95",313.55
+2024,5,3.55%,"319,364.45",314.07
+2024,6,2.38%,"326,964.24",314.18
+2024,7,-0.97%,"323,790.69",314.54
+2024,8,2.72%,"332,604.63",314.80
+2024,9,3.15%,"343,087.95",315.30
+2024,10,4.40%,"358,181.95",315.66
diff --git a/SidLamsal-MiniProject/MiniProjectCode/UMCSENT.csv b/SidLamsal-MiniProject/MiniProjectCode/UMCSENT.csv
new file mode 100644
index 0000000..d752102
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/UMCSENT.csv
@@ -0,0 +1,289 @@
+observation_date,UMCSENT
+1953-01-01,90.7
+1953-04-01,
+1953-07-01,80.8
+1953-10-01,80.7
+1954-01-01,82.0
+1954-04-01,82.9
+1954-07-01,
+1954-10-01,87.0
+1955-01-01,95.9
+1955-04-01,99.1
+1955-07-01,
+1955-10-01,99.7
+1956-01-01,
+1956-04-01,98.2
+1956-07-01,99.9
+1956-10-01,100.2
+1957-01-01,
+1957-04-01,92.9
+1957-07-01,
+1957-10-01,83.7
+1958-01-01,78.5
+1958-04-01,80.9
+1958-07-01,
+1958-10-01,90.8
+1959-01-01,
+1959-04-01,95.3
+1959-07-01,
+1959-10-01,93.8
+1960-01-01,100.0
+1960-04-01,93.3
+1960-07-01,97.2
+1960-10-01,90.1
+1961-01-01,91.6
+1961-04-01,92.5
+1961-07-01,99.2
+1961-10-01,93.0
+1962-01-01,99.9
+1962-04-01,95.4
+1962-07-01,91.6
+1962-10-01,95.0
+1963-01-01,98.4
+1963-04-01,91.7
+1963-07-01,96.4
+1963-10-01,94.4
+1964-01-01,99.5
+1964-04-01,98.5
+1964-07-01,100.6
+1964-10-01,99.9
+1965-01-01,102.0
+1965-04-01,105.4
+1965-07-01,103.4
+1965-10-01,102.9
+1966-01-01,100.0
+1966-04-01,95.7
+1966-07-01,91.2
+1966-10-01,88.3
+1967-01-01,94.1
+1967-04-01,95.9
+1967-07-01,97.0
+1967-10-01,92.9
+1968-01-01,97.2
+1968-04-01,92.4
+1968-07-01,92.4
+1968-10-01,91.7
+1969-01-01,98.2
+1969-04-01,91.5
+1969-07-01,86.4
+1969-10-01,79.7
+1970-01-01,78.1
+1970-04-01,75.4
+1970-07-01,77.6
+1970-10-01,72.4
+1971-01-01,78.1
+1971-04-01,80.2
+1971-07-01,82.1
+1971-10-01,82.0
+1972-01-01,92.8
+1972-04-01,88.6
+1972-07-01,95.2
+1972-10-01,90.7
+1973-01-01,81.9
+1973-04-01,77.0
+1973-07-01,72.0
+1973-10-01,76.5
+1974-01-01,61.8
+1974-04-01,72.1
+1974-07-01,64.4
+1974-10-01,59.5
+1975-01-01,57.6
+1975-04-01,72.8
+1975-07-01,75.7
+1975-10-01,75.6
+1976-01-01,84.6
+1976-04-01,83.3
+1976-07-01,89.7
+1976-10-01,87.0
+1977-01-01,87.1
+1977-04-01,90.2
+1977-07-01,89.0
+1977-10-01,84.4
+1978-01-01,82.3
+1978-04-01,81.5
+1978-07-01,80.4
+1978-10-01,73.5
+1979-01-01,71.5
+1979-04-01,66.6
+1979-07-01,63.9
+1979-10-01,62.1
+1980-01-01,63.5
+1980-04-01,54.4
+1980-07-01,67.8
+1980-10-01,72.1
+1981-01-01,68.3
+1981-04-01,73.9
+1981-07-01,74.8
+1981-10-01,65.7
+1982-01-01,66.5
+1982-04-01,66.2
+1982-07-01,66.7
+1982-10-01,72.5
+1983-01-01,75.3
+1983-04-01,91.5
+1983-07-01,91.2
+1983-10-01,91.5
+1984-01-01,99.5
+1984-04-01,96.6
+1984-07-01,98.9
+1984-10-01,95.0
+1985-01-01,94.5
+1985-04-01,94.3
+1985-07-01,92.8
+1985-10-01,91.1
+1986-01-01,95.5
+1986-04-01,96.8
+1986-07-01,94.8
+1986-10-01,92.0
+1987-01-01,90.5
+1987-04-01,91.8
+1987-07-01,93.9
+1987-10-01,86.4
+1988-01-01,92.3
+1988-04-01,93.6
+1988-07-01,96.0
+1988-10-01,93.0
+1989-01-01,95.9
+1989-04-01,90.9
+1989-07-01,92.5
+1989-10-01,91.8
+1990-01-01,91.3
+1990-04-01,90.9
+1990-07-01,79.1
+1990-10-01,65.1
+1991-01-01,75.0
+1991-04-01,80.7
+1991-07-01,82.6
+1991-10-01,71.9
+1992-01-01,70.8
+1992-04-01,78.9
+1992-07-01,76.1
+1992-10-01,83.2
+1993-01-01,87.3
+1993-04-01,82.5
+1993-07-01,77.4
+1993-10-01,84.0
+1994-01-01,93.0
+1994-04-01,92.2
+1994-07-01,90.7
+1994-10-01,93.1
+1995-01-01,94.3
+1995-04-01,91.7
+1995-07-01,93.2
+1995-10-01,89.8
+1996-01-01,90.5
+1996-04-01,91.5
+1996-07-01,94.9
+1996-10-01,97.5
+1997-01-01,99.0
+1997-04-01,103.0
+1997-07-01,105.8
+1997-10-01,105.0
+1998-01-01,107.8
+1998-04-01,106.9
+1998-07-01,103.5
+1998-10-01,100.2
+1999-01-01,105.9
+1999-04-01,106.2
+1999-07-01,105.9
+1999-10-01,105.3
+2000-01-01,110.1
+2000-04-01,108.8
+2000-07-01,107.5
+2000-10-01,103.9
+2001-01-01,92.3
+2001-04-01,91.0
+2001-07-01,88.6
+2001-10-01,85.1
+2002-01-01,93.1
+2002-04-01,94.1
+2002-07-01,87.3
+2002-10-01,83.8
+2003-01-01,80.0
+2003-04-01,89.3
+2003-07-01,89.3
+2003-10-01,92.0
+2004-01-01,98.0
+2004-04-01,93.3
+2004-07-01,95.6
+2004-10-01,93.9
+2005-01-01,94.1
+2005-04-01,90.2
+2005-07-01,87.5
+2005-10-01,82.4
+2006-01-01,88.9
+2006-04-01,83.8
+2006-07-01,84.0
+2006-10-01,92.5
+2007-01-01,92.2
+2007-04-01,86.9
+2007-07-01,85.7
+2007-10-01,77.5
+2008-01-01,72.9
+2008-04-01,59.6
+2008-07-01,64.8
+2008-10-01,57.7
+2009-01-01,58.3
+2009-04-01,68.2
+2009-07-01,68.4
+2009-10-01,70.2
+2010-01-01,73.9
+2010-04-01,73.9
+2010-07-01,68.3
+2010-10-01,71.3
+2011-01-01,73.1
+2011-04-01,71.9
+2011-07-01,59.7
+2011-10-01,64.8
+2012-01-01,75.5
+2012-04-01,76.3
+2012-07-01,75.0
+2012-10-01,79.4
+2013-01-01,76.7
+2013-04-01,81.7
+2013-07-01,81.6
+2013-10-01,76.9
+2014-01-01,80.9
+2014-04-01,82.8
+2014-07-01,83.0
+2014-10-01,89.8
+2015-01-01,95.5
+2015-04-01,94.2
+2015-07-01,90.7
+2015-10-01,91.3
+2016-01-01,91.6
+2016-04-01,92.4
+2016-07-01,90.3
+2016-10-01,93.1
+2017-01-01,97.2
+2017-04-01,96.4
+2017-07-01,95.1
+2017-10-01,98.4
+2018-01-01,98.9
+2018-04-01,98.3
+2018-07-01,98.1
+2018-10-01,98.1
+2019-01-01,94.5
+2019-04-01,98.5
+2019-07-01,93.8
+2019-10-01,97.2
+2020-01-01,96.6
+2020-04-01,74.1
+2020-07-01,75.7
+2020-10-01,79.8
+2021-01-01,80.2
+2021-04-01,85.6
+2021-07-01,74.8
+2021-10-01,69.9
+2022-01-01,63.1
+2022-04-01,57.9
+2022-07-01,56.1
+2022-10-01,58.8
+2023-01-01,64.6
+2023-04-01,62.3
+2023-07-01,69.6
+2023-10-01,64.9
+2024-01-01,78.4
+2024-04-01,71.5
+2024-07-01,68.1
+2024-10-01,72.1
diff --git a/SidLamsal-MiniProject/MiniProjectCode/UNRATE.csv b/SidLamsal-MiniProject/MiniProjectCode/UNRATE.csv
new file mode 100644
index 0000000..fe79435
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/UNRATE.csv
@@ -0,0 +1,302 @@
+observation_date,UNRATE
+1950-01-01,6.4
+1950-04-01,5.6
+1950-07-01,4.6
+1950-10-01,4.2
+1951-01-01,3.5
+1951-04-01,3.1
+1951-07-01,3.2
+1951-10-01,3.4
+1952-01-01,3.1
+1952-04-01,3.0
+1952-07-01,3.2
+1952-10-01,2.8
+1953-01-01,2.7
+1953-04-01,2.6
+1953-07-01,2.7
+1953-10-01,3.7
+1954-01-01,5.3
+1954-04-01,5.8
+1954-07-01,6.0
+1954-10-01,5.3
+1955-01-01,4.7
+1955-04-01,4.4
+1955-07-01,4.1
+1955-10-01,4.2
+1956-01-01,4.0
+1956-04-01,4.2
+1956-07-01,4.1
+1956-10-01,4.1
+1957-01-01,3.9
+1957-04-01,4.1
+1957-07-01,4.2
+1957-10-01,4.9
+1958-01-01,6.3
+1958-04-01,7.4
+1958-07-01,7.3
+1958-10-01,6.4
+1959-01-01,5.8
+1959-04-01,5.1
+1959-07-01,5.3
+1959-10-01,5.6
+1960-01-01,5.1
+1960-04-01,5.2
+1960-07-01,5.5
+1960-10-01,6.3
+1961-01-01,6.8
+1961-04-01,7.0
+1961-07-01,6.8
+1961-10-01,6.2
+1962-01-01,5.6
+1962-04-01,5.5
+1962-07-01,5.6
+1962-10-01,5.5
+1963-01-01,5.8
+1963-04-01,5.7
+1963-07-01,5.5
+1963-10-01,5.6
+1964-01-01,5.5
+1964-04-01,5.2
+1964-07-01,5.0
+1964-10-01,5.0
+1965-01-01,4.9
+1965-04-01,4.7
+1965-07-01,4.4
+1965-10-01,4.1
+1966-01-01,3.9
+1966-04-01,3.8
+1966-07-01,3.8
+1966-10-01,3.7
+1967-01-01,3.8
+1967-04-01,3.8
+1967-07-01,3.8
+1967-10-01,3.9
+1968-01-01,3.7
+1968-04-01,3.6
+1968-07-01,3.5
+1968-10-01,3.4
+1969-01-01,3.4
+1969-04-01,3.4
+1969-07-01,3.6
+1969-10-01,3.6
+1970-01-01,4.2
+1970-04-01,4.8
+1970-07-01,5.2
+1970-10-01,5.8
+1971-01-01,5.9
+1971-04-01,5.9
+1971-07-01,6.0
+1971-10-01,5.9
+1972-01-01,5.8
+1972-04-01,5.7
+1972-07-01,5.6
+1972-10-01,5.4
+1973-01-01,4.9
+1973-04-01,4.9
+1973-07-01,4.8
+1973-10-01,4.8
+1974-01-01,5.1
+1974-04-01,5.2
+1974-07-01,5.6
+1974-10-01,6.6
+1975-01-01,8.3
+1975-04-01,8.9
+1975-07-01,8.5
+1975-10-01,8.3
+1976-01-01,7.7
+1976-04-01,7.6
+1976-07-01,7.7
+1976-10-01,7.8
+1977-01-01,7.5
+1977-04-01,7.1
+1977-07-01,6.9
+1977-10-01,6.7
+1978-01-01,6.3
+1978-04-01,6.0
+1978-07-01,6.0
+1978-10-01,5.9
+1979-01-01,5.9
+1979-04-01,5.7
+1979-07-01,5.9
+1979-10-01,6.0
+1980-01-01,6.3
+1980-04-01,7.3
+1980-07-01,7.7
+1980-10-01,7.4
+1981-01-01,7.4
+1981-04-01,7.4
+1981-07-01,7.4
+1981-10-01,8.2
+1982-01-01,8.8
+1982-04-01,9.4
+1982-07-01,9.9
+1982-10-01,10.7
+1983-01-01,10.4
+1983-04-01,10.1
+1983-07-01,9.4
+1983-10-01,8.5
+1984-01-01,7.9
+1984-04-01,7.4
+1984-07-01,7.4
+1984-10-01,7.3
+1985-01-01,7.2
+1985-04-01,7.3
+1985-07-01,7.2
+1985-10-01,7.0
+1986-01-01,7.0
+1986-04-01,7.2
+1986-07-01,7.0
+1986-10-01,6.8
+1987-01-01,6.6
+1987-04-01,6.3
+1987-07-01,6.0
+1987-10-01,5.8
+1988-01-01,5.7
+1988-04-01,5.5
+1988-07-01,5.5
+1988-10-01,5.3
+1989-01-01,5.2
+1989-04-01,5.2
+1989-07-01,5.2
+1989-10-01,5.4
+1990-01-01,5.3
+1990-04-01,5.3
+1990-07-01,5.7
+1990-10-01,6.1
+1991-01-01,6.6
+1991-04-01,6.8
+1991-07-01,6.9
+1991-10-01,7.1
+1992-01-01,7.4
+1992-04-01,7.6
+1992-07-01,7.6
+1992-10-01,7.4
+1993-01-01,7.1
+1993-04-01,7.1
+1993-07-01,6.8
+1993-10-01,6.6
+1994-01-01,6.6
+1994-04-01,6.2
+1994-07-01,6.0
+1994-10-01,5.6
+1995-01-01,5.5
+1995-04-01,5.7
+1995-07-01,5.7
+1995-10-01,5.6
+1996-01-01,5.5
+1996-04-01,5.5
+1996-07-01,5.3
+1996-10-01,5.3
+1997-01-01,5.2
+1997-04-01,5.0
+1997-07-01,4.9
+1997-10-01,4.7
+1998-01-01,4.6
+1998-04-01,4.4
+1998-07-01,4.5
+1998-10-01,4.4
+1999-01-01,4.3
+1999-04-01,4.3
+1999-07-01,4.2
+1999-10-01,4.1
+2000-01-01,4.0
+2000-04-01,3.9
+2000-07-01,4.0
+2000-10-01,3.9
+2001-01-01,4.2
+2001-04-01,4.4
+2001-07-01,4.8
+2001-10-01,5.5
+2002-01-01,5.7
+2002-04-01,5.8
+2002-07-01,5.7
+2002-10-01,5.9
+2003-01-01,5.9
+2003-04-01,6.1
+2003-07-01,6.1
+2003-10-01,5.8
+2004-01-01,5.7
+2004-04-01,5.6
+2004-07-01,5.4
+2004-10-01,5.4
+2005-01-01,5.3
+2005-04-01,5.1
+2005-07-01,5.0
+2005-10-01,5.0
+2006-01-01,4.7
+2006-04-01,4.6
+2006-07-01,4.6
+2006-10-01,4.4
+2007-01-01,4.5
+2007-04-01,4.5
+2007-07-01,4.7
+2007-10-01,4.8
+2008-01-01,5.0
+2008-04-01,5.3
+2008-07-01,6.0
+2008-10-01,6.9
+2009-01-01,8.3
+2009-04-01,9.3
+2009-07-01,9.6
+2009-10-01,9.9
+2010-01-01,9.8
+2010-04-01,9.6
+2010-07-01,9.5
+2010-10-01,9.5
+2011-01-01,9.0
+2011-04-01,9.1
+2011-07-01,9.0
+2011-10-01,8.6
+2012-01-01,8.3
+2012-04-01,8.2
+2012-07-01,8.0
+2012-10-01,7.8
+2013-01-01,7.7
+2013-04-01,7.5
+2013-07-01,7.2
+2013-10-01,6.9
+2014-01-01,6.7
+2014-04-01,6.2
+2014-07-01,6.1
+2014-10-01,5.7
+2015-01-01,5.5
+2015-04-01,5.4
+2015-07-01,5.1
+2015-10-01,5.0
+2016-01-01,4.9
+2016-04-01,4.9
+2016-07-01,4.9
+2016-10-01,4.8
+2017-01-01,4.6
+2017-04-01,4.4
+2017-07-01,4.3
+2017-10-01,4.2
+2018-01-01,4.0
+2018-04-01,3.9
+2018-07-01,3.8
+2018-10-01,3.8
+2019-01-01,3.9
+2019-04-01,3.6
+2019-07-01,3.6
+2019-10-01,3.6
+2020-01-01,3.8
+2020-04-01,13.0
+2020-07-01,8.8
+2020-10-01,6.8
+2021-01-01,6.2
+2021-04-01,5.9
+2021-07-01,5.1
+2021-10-01,4.2
+2022-01-01,3.8
+2022-04-01,3.6
+2022-07-01,3.5
+2022-10-01,3.6
+2023-01-01,3.5
+2023-04-01,3.5
+2023-07-01,3.7
+2023-10-01,3.8
+2024-01-01,3.8
+2024-04-01,4.0
+2024-07-01,4.2
+2024-10-01,4.1
+2025-01-01,
diff --git a/SidLamsal-MiniProject/MiniProjectCode/miniProjectCode.ipynb b/SidLamsal-MiniProject/MiniProjectCode/miniProjectCode.ipynb
deleted file mode 100644
index fc77da5..0000000
--- a/SidLamsal-MiniProject/MiniProjectCode/miniProjectCode.ipynb
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "cells": [
- {
- "cell_type": "code",
- "execution_count": 1,
- "metadata": {
- "vscode": {
- "languageId": "markdown"
- }
- },
- "outputs": [
- {
- "data": {
- "text/html": [
- "\n",
- "\n",
- "
\n",
- " \n",
- " \n",
- " | \n",
- " observation_date | \n",
- " GDPC1_PC1 | \n",
- "
\n",
- " \n",
- " \n",
- " \n",
- " | 0 | \n",
- " 1950-01-01 | \n",
- " 3.77286 | \n",
- "
\n",
- " \n",
- " | 1 | \n",
- " 1950-04-01 | \n",
- " 7.30336 | \n",
- "
\n",
- " \n",
- " | 2 | \n",
- " 1950-07-01 | \n",
- " 10.31016 | \n",
- "
\n",
- " \n",
- " | 3 | \n",
- " 1950-10-01 | \n",
- " 13.37239 | \n",
- "
\n",
- " \n",
- " | 4 | \n",
- " 1951-01-01 | \n",
- " 10.56488 | \n",
- "
\n",
- " \n",
- "
\n",
- "
"
- ],
- "text/plain": [
- " observation_date GDPC1_PC1\n",
- "0 1950-01-01 3.77286\n",
- "1 1950-04-01 7.30336\n",
- "2 1950-07-01 10.31016\n",
- "3 1950-10-01 13.37239\n",
- "4 1951-01-01 10.56488"
- ]
- },
- "execution_count": 1,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "import pandas as pd\n",
- "\n",
- "# Replace 'your_file.csv' with the path to your CSV file\n",
- "df = pd.read_csv('GDPC1_PC1.csv')\n",
- "\n",
- "# Display the first few rows of the DataFrame\n",
- "df.head()"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "vscode": {
- "languageId": "markdown"
- }
- },
- "outputs": [],
- "source": []
- }
- ],
- "metadata": {
- "kernelspec": {
- "display_name": "Python 3",
- "language": "python",
- "name": "python3"
- },
- "language_info": {
- "codemirror_mode": {
- "name": "ipython",
- "version": 3
- },
- "file_extension": ".py",
- "mimetype": "text/x-python",
- "name": "python",
- "nbconvert_exporter": "python",
- "pygments_lexer": "ipython3",
- "version": "3.12.1"
- }
- },
- "nbformat": 4,
- "nbformat_minor": 2
-}
From cbf847ce8904e3851173b156844857c23f076560 Mon Sep 17 00:00:00 2001
From: sidlamsal <98344853+sidlamsal@users.noreply.github.com>
Date: Thu, 13 Feb 2025 13:15:17 -0500
Subject: [PATCH 6/9] final csv files
---
.../MiniProjectCode/MiniProjectNotebook.ipynb | 247 ++++++++++++++--
.../MiniProjectCode/final_economic_data.csv | 277 ++++++++++++++++++
.../final_election_results.csv | 19 ++
3 files changed, 516 insertions(+), 27 deletions(-)
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/final_economic_data.csv
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/final_election_results.csv
diff --git a/SidLamsal-MiniProject/MiniProjectCode/MiniProjectNotebook.ipynb b/SidLamsal-MiniProject/MiniProjectCode/MiniProjectNotebook.ipynb
index d46aed8..97a638d 100644
--- a/SidLamsal-MiniProject/MiniProjectCode/MiniProjectNotebook.ipynb
+++ b/SidLamsal-MiniProject/MiniProjectCode/MiniProjectNotebook.ipynb
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 43,
+ "execution_count": 85,
"metadata": {},
"outputs": [],
"source": [
@@ -12,7 +12,7 @@
},
{
"cell_type": "code",
- "execution_count": 44,
+ "execution_count": 86,
"metadata": {},
"outputs": [
{
@@ -49,7 +49,7 @@
"Index: []"
]
},
- "execution_count": 44,
+ "execution_count": 86,
"metadata": {},
"output_type": "execute_result"
}
@@ -64,7 +64,7 @@
},
{
"cell_type": "code",
- "execution_count": 45,
+ "execution_count": 87,
"metadata": {},
"outputs": [
{
@@ -143,7 +143,7 @@
"4 1951 1 1.34882 False"
]
},
- "execution_count": 45,
+ "execution_count": 87,
"metadata": {},
"output_type": "execute_result"
}
@@ -169,7 +169,7 @@
},
{
"cell_type": "code",
- "execution_count": 46,
+ "execution_count": 88,
"metadata": {},
"outputs": [
{
@@ -254,7 +254,7 @@
"4 1951 1 1.34882 False 3.5"
]
},
- "execution_count": 46,
+ "execution_count": 88,
"metadata": {},
"output_type": "execute_result"
}
@@ -278,7 +278,7 @@
},
{
"cell_type": "code",
- "execution_count": 47,
+ "execution_count": 89,
"metadata": {},
"outputs": [
{
@@ -369,7 +369,7 @@
"4 1951 1 1.34882 False 3.5 8.94573"
]
},
- "execution_count": 47,
+ "execution_count": 89,
"metadata": {},
"output_type": "execute_result"
}
@@ -392,7 +392,7 @@
},
{
"cell_type": "code",
- "execution_count": 48,
+ "execution_count": 90,
"metadata": {},
"outputs": [
{
@@ -496,7 +496,7 @@
"4 0.51414 "
]
},
- "execution_count": 48,
+ "execution_count": 90,
"metadata": {},
"output_type": "execute_result"
}
@@ -526,7 +526,7 @@
},
{
"cell_type": "code",
- "execution_count": 49,
+ "execution_count": 91,
"metadata": {},
"outputs": [
{
@@ -636,7 +636,7 @@
"299 -8.63110 4.400000 "
]
},
- "execution_count": 49,
+ "execution_count": 91,
"metadata": {},
"output_type": "execute_result"
}
@@ -668,7 +668,7 @@
},
{
"cell_type": "code",
- "execution_count": 50,
+ "execution_count": 92,
"metadata": {
"vscode": {
"languageId": "ruby"
@@ -788,7 +788,7 @@
"4 0.51414 5.142996 NaN "
]
},
- "execution_count": 50,
+ "execution_count": 92,
"metadata": {},
"output_type": "execute_result"
}
@@ -811,7 +811,7 @@
},
{
"cell_type": "code",
- "execution_count": 51,
+ "execution_count": 93,
"metadata": {},
"outputs": [
{
@@ -933,7 +933,7 @@
"4 0.51414 5.142996 NaN NaN "
]
},
- "execution_count": 51,
+ "execution_count": 93,
"metadata": {},
"output_type": "execute_result"
}
@@ -956,7 +956,7 @@
},
{
"cell_type": "code",
- "execution_count": 52,
+ "execution_count": 94,
"metadata": {},
"outputs": [
{
@@ -1091,7 +1091,7 @@
"4 -0.208081 "
]
},
- "execution_count": 52,
+ "execution_count": 94,
"metadata": {},
"output_type": "execute_result"
}
@@ -1140,7 +1140,7 @@
},
{
"cell_type": "code",
- "execution_count": 53,
+ "execution_count": 95,
"metadata": {},
"outputs": [
{
@@ -1551,7 +1551,7 @@
"19 0.483989 -4.789625 "
]
},
- "execution_count": 53,
+ "execution_count": 95,
"metadata": {},
"output_type": "execute_result"
}
@@ -1604,7 +1604,7 @@
},
{
"cell_type": "code",
- "execution_count": 54,
+ "execution_count": 96,
"metadata": {},
"outputs": [
{
@@ -1891,7 +1891,7 @@
"9 Democrats "
]
},
- "execution_count": 54,
+ "execution_count": 96,
"metadata": {},
"output_type": "execute_result"
}
@@ -1955,7 +1955,7 @@
},
{
"cell_type": "code",
- "execution_count": 55,
+ "execution_count": 97,
"metadata": {},
"outputs": [
{
@@ -2503,7 +2503,7 @@
"17 37 "
]
},
- "execution_count": 55,
+ "execution_count": 97,
"metadata": {},
"output_type": "execute_result"
}
@@ -2555,10 +2555,203 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 98,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Year | \n",
+ " Quarter | \n",
+ " GDP_Growth | \n",
+ " Recession | \n",
+ " Unemployment_Rate | \n",
+ " Inflation_Rate | \n",
+ " Gas_Prices | \n",
+ " SP500_Return_Rate | \n",
+ " Consumer_Confidence | \n",
+ " Federal_Funds_Rate | \n",
+ " Debt_Percent_Change | \n",
+ " Egg_Price | \n",
+ " President | \n",
+ " President_Party | \n",
+ " House_Majority | \n",
+ " Senate_Majority | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " | 24 | \n",
+ " 1956 | \n",
+ " 1 | \n",
+ " -0.38880 | \n",
+ " True | \n",
+ " 4.0 | \n",
+ " 0.24882 | \n",
+ " 0.00000 | \n",
+ " 9.830277 | \n",
+ " NaN | \n",
+ " 2.48 | \n",
+ " -0.148249 | \n",
+ " -0.138338 | \n",
+ " Eisenhower | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 25 | \n",
+ " 1956 | \n",
+ " 2 | \n",
+ " 0.82318 | \n",
+ " False | \n",
+ " 4.2 | \n",
+ " 1.04647 | \n",
+ " 0.88496 | \n",
+ " 2.479559 | \n",
+ " 98.2 | \n",
+ " 2.69 | \n",
+ " -0.148249 | \n",
+ " -0.138338 | \n",
+ " Eisenhower | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 26 | \n",
+ " 1956 | \n",
+ " 3 | \n",
+ " -0.08974 | \n",
+ " True | \n",
+ " 4.1 | \n",
+ " 2.01668 | \n",
+ " 3.03711 | \n",
+ " -4.279415 | \n",
+ " 99.9 | \n",
+ " 2.81 | \n",
+ " -0.148249 | \n",
+ " -0.138338 | \n",
+ " Eisenhower | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 27 | \n",
+ " 1956 | \n",
+ " 4 | \n",
+ " 1.63251 | \n",
+ " False | \n",
+ " 4.1 | \n",
+ " 2.58161 | \n",
+ " -0.85837 | \n",
+ " -0.793072 | \n",
+ " 100.2 | \n",
+ " 2.93 | \n",
+ " -0.148249 | \n",
+ " -0.138338 | \n",
+ " Eisenhower | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ " | 28 | \n",
+ " 1957 | \n",
+ " 1 | \n",
+ " 0.63823 | \n",
+ " False | \n",
+ " 3.9 | \n",
+ " 3.41276 | \n",
+ " 2.13228 | \n",
+ " 0.130657 | \n",
+ " NaN | \n",
+ " 2.93 | \n",
+ " -0.204442 | \n",
+ " -1.219858 | \n",
+ " Eisenhower | \n",
+ " Republican | \n",
+ " Democrats | \n",
+ " Democrats | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Year Quarter GDP_Growth Recession Unemployment_Rate Inflation_Rate \\\n",
+ "24 1956 1 -0.38880 True 4.0 0.24882 \n",
+ "25 1956 2 0.82318 False 4.2 1.04647 \n",
+ "26 1956 3 -0.08974 True 4.1 2.01668 \n",
+ "27 1956 4 1.63251 False 4.1 2.58161 \n",
+ "28 1957 1 0.63823 False 3.9 3.41276 \n",
+ "\n",
+ " Gas_Prices SP500_Return_Rate Consumer_Confidence Federal_Funds_Rate \\\n",
+ "24 0.00000 9.830277 NaN 2.48 \n",
+ "25 0.88496 2.479559 98.2 2.69 \n",
+ "26 3.03711 -4.279415 99.9 2.81 \n",
+ "27 -0.85837 -0.793072 100.2 2.93 \n",
+ "28 2.13228 0.130657 NaN 2.93 \n",
+ "\n",
+ " Debt_Percent_Change Egg_Price President President_Party House_Majority \\\n",
+ "24 -0.148249 -0.138338 Eisenhower Republican Democrats \n",
+ "25 -0.148249 -0.138338 Eisenhower Republican Democrats \n",
+ "26 -0.148249 -0.138338 Eisenhower Republican Democrats \n",
+ "27 -0.148249 -0.138338 Eisenhower Republican Democrats \n",
+ "28 -0.204442 -1.219858 Eisenhower Republican Democrats \n",
+ "\n",
+ " Senate_Majority \n",
+ "24 Democrats \n",
+ "25 Democrats \n",
+ "26 Democrats \n",
+ "27 Democrats \n",
+ "28 Democrats "
+ ]
+ },
+ "execution_count": 98,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Filter the economic_df to start from 1956\n",
+ "economic_df = economic_df[economic_df['Year'] >= 1956]\n",
+ "\n",
+ "# Display the updated DataFrame\n",
+ "economic_df.head()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 99,
"metadata": {},
"outputs": [],
- "source": []
+ "source": [
+ "# Save economic_df to a CSV file\n",
+ "economic_df.to_csv('final_economic_data.csv', index=False)\n",
+ "\n",
+ "# Save result_df to a CSV file\n",
+ "result_df.to_csv('final_election_results.csv', index=False)"
+ ]
},
{
"cell_type": "code",
diff --git a/SidLamsal-MiniProject/MiniProjectCode/final_economic_data.csv b/SidLamsal-MiniProject/MiniProjectCode/final_economic_data.csv
new file mode 100644
index 0000000..b6de63f
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/final_economic_data.csv
@@ -0,0 +1,277 @@
+Year,Quarter,GDP_Growth,Recession,Unemployment_Rate,Inflation_Rate,Gas_Prices,SP500_Return_Rate,Consumer_Confidence,Federal_Funds_Rate,Debt_Percent_Change,Egg_Price,President,President_Party,House_Majority,Senate_Majority
+1956,1,-0.3888,True,4.0,0.24882,0.0,9.830276725999987,,2.48,-0.14824858741575575,-0.13833815487817036,Eisenhower,Republican,Democrats,Democrats
+1956,2,0.82318,False,4.2,1.04647,0.88496,2.4795585799999964,98.2,2.69,-0.14824858741575575,-0.13833815487817036,Eisenhower,Republican,Democrats,Democrats
+1956,3,-0.08974,True,4.1,2.01668,3.03711,-4.279415194000002,99.9,2.81,-0.14824858741575575,-0.13833815487817036,Eisenhower,Republican,Democrats,Democrats
+1956,4,1.63251,False,4.1,2.58161,-0.85837,-0.7930719713999945,100.2,2.93,-0.14824858741575575,-0.13833815487817036,Eisenhower,Republican,Democrats,Democrats
+1957,1,0.63823,False,3.9,3.41276,2.13228,0.13065727999999055,,2.93,-0.2044423305342491,-1.21985837643811,Eisenhower,Republican,Democrats,Democrats
+1957,2,-0.21938,True,4.1,3.61238,0.97971,8.654753984000019,92.9,3.0,-0.2044423305342491,-1.21985837643811,Eisenhower,Republican,Democrats,Democrats
+1957,3,0.97515,False,4.2,3.46553,-0.69881,-14.138592386000004,,3.23,-0.2044423305342491,-1.21985837643811,Eisenhower,Republican,Democrats,Democrats
+1957,4,-1.03993,True,4.9,3.0853,-0.2809,0.8096217920000148,83.7,3.25,-0.2044423305342491,-1.21985837643811,Eisenhower,Republican,Democrats,Democrats
+1958,1,-2.63019,True,6.3,3.45614,-1.13155,4.065172459999999,78.5,1.87,0.5331937411358734,1.2538308352753935,Eisenhower,Republican,Democrats,Democrats
+1958,2,0.65475,False,7.4,3.27225,-0.71378,9.663948600799998,80.9,0.94,0.5331937411358734,1.2538308352753935,Eisenhower,Republican,Democrats,Democrats
+1958,3,2.28676,False,7.3,2.2998,2.68567,11.779025452000024,,1.32,0.5331937411358734,1.2538308352753935,Eisenhower,Republican,Democrats,Democrats
+1958,4,2.31131,False,6.4,1.91315,-3.1164,10.04830994000001,90.8,2.16,0.5331937411358734,1.2538308352753935,Eisenhower,Republican,Democrats,Democrats
+1959,1,1.90024,False,5.8,0.89317,0.0,3.473496672200005,,2.58,0.7481121498015497,-3.5174499961285965,Eisenhower,Republican,Democrats,Democrats
+1959,2,2.22842,False,5.1,0.39175,1.71188,5.427814286900001,95.3,3.08,0.7481121498015497,-3.5174499961285965,Eisenhower,Republican,Democrats,Democrats
+1959,3,0.0697,False,5.3,0.96841,0.84508,-3.835374688000004,,3.57,0.7481121498015497,-3.5174499961285965,Eisenhower,Republican,Democrats,Democrats
+1959,4,0.28458,False,5.6,1.47414,2.76643,2.60129958819999,93.8,3.99,0.7481121498015497,-3.5174499961285965,Eisenhower,Republican,Democrats,Democrats
+1960,1,2.22372,False,5.1,1.39112,-1.51206,-3.1444979896000036,100.0,3.93,0.14237391918818787,1.8199508596207448,Eisenhower,Republican,Democrats,Democrats
+1960,2,-0.53981,True,5.2,1.82486,0.13841,1.0716662360000129,93.3,3.7,0.14237391918818787,1.8199508596207448,Eisenhower,Republican,Democrats,Democrats
+1960,3,0.48873,False,5.5,1.35876,2.72868,-2.9193101824000034,97.2,2.94,0.14237391918818787,1.8199508596207448,Eisenhower,Republican,Democrats,Democrats
+1960,4,-1.29143,True,6.3,1.39598,-0.26954,12.0986857718,90.1,2.3,0.14237391918818787,1.8199508596207448,Eisenhower,Republican,Democrats,Democrats
+1961,1,0.67275,False,6.8,1.50811,-0.81301,11.069802536000006,91.6,1.99,0.2297253544996769,0.003382835502718784,Kennedy,Democrat,Democrats,Democrats
+1961,2,1.6836,False,7.0,0.8679,-3.6015,0.13634208239998724,92.5,1.73,0.2297253544996769,0.003382835502718784,Kennedy,Democrat,Democrats,Democrats
+1961,3,1.90216,False,6.8,1.20536,3.05579,4.663206137600007,99.2,1.68,0.2297253544996769,0.003382835502718784,Kennedy,Democrat,Democrats,Democrats
+1961,4,1.94268,False,6.2,0.70517,-0.96221,2.286443913200009,93.0,2.4,0.2297253544996769,0.003382835502718784,Kennedy,Democrat,Democrats,Democrats
+1962,1,1.76794,False,5.6,0.89366,-0.41523,-0.749846923600006,99.9,2.46,0.789123210320164,-1.4678550943897695,Kennedy,Democrat,Democrats,Democrats
+1962,2,0.90069,False,5.5,1.30741,1.10346,-15.543226691199985,95.4,2.61,0.789123210320164,-1.4678550943897695,Kennedy,Democrat,Democrats,Democrats
+1962,3,1.22207,False,5.6,1.20214,-0.55021,-0.5168064051999988,91.6,2.85,0.789123210320164,-1.4678550943897695,Kennedy,Democrat,Democrats,Democrats
+1962,4,0.32886,False,5.5,1.30043,2.04785,16.80697456000002,95.0,2.92,0.789123210320164,-1.4678550943897695,Kennedy,Democrat,Democrats,Democrats
+1963,1,1.08617,False,5.8,1.22896,-0.81412,6.542354352000013,98.4,2.97,0.635991887328613,0.37742076858768847,Kennedy / L. Johnson,Democrat,Democrats,Democrats
+1963,2,1.11616,False,5.7,1.03684,-1.92578,1.2445550732000044,91.7,2.96,0.635991887328613,0.37742076858768847,Kennedy / L. Johnson,Democrat,Democrats,Democrats
+1963,3,2.17501,False,5.5,1.36384,1.51622,6.537604834999988,96.4,3.33,0.635991887328613,0.37742076858768847,Kennedy / L. Johnson,Democrat,Democrats,Democrats
+1963,4,0.65376,False,5.6,1.39346,-0.68634,5.471608280300022,94.4,3.45,0.635991887328613,0.37742076858768847,Kennedy / L. Johnson,Democrat,Democrats,Democrats
+1964,1,2.08679,False,5.5,1.48748,,5.331148748399972,99.5,3.46,0.4750319279826387,-0.2464791333472438,Kennedy / L. Johnson,Democrat,Democrats,Democrats
+1964,2,1.08318,False,5.2,1.46288,,4.860012908000022,98.5,3.49,0.4750319279826387,-0.2464791333472438,Kennedy / L. Johnson,Democrat,Democrats,Democrats
+1964,3,1.55052,False,5.0,1.07422,,2.699869649300024,100.6,3.46,0.4750319279826387,-0.2464791333472438,Kennedy / L. Johnson,Democrat,Democrats,Democrats
+1964,4,0.30871,False,5.0,1.2661,,2.2400890307999966,99.9,3.58,0.4750319279826387,-0.2464791333472438,Kennedy / L. Johnson,Democrat,Democrats,Democrats
+1965,1,2.39109,False,4.9,1.16392,,2.903975979200024,102.0,3.98,0.44305022770636526,-0.616206551373577,L. Johnson,Democrat,Democrats,Democrats
+1965,2,1.25556,False,4.7,1.64622,,-2.760881023000006,105.4,4.08,0.44305022770636526,-0.616206551373577,L. Johnson,Democrat,Democrats,Democrats
+1965,3,2.19881,False,4.4,1.71766,,8.441228,103.4,4.08,0.44305022770636526,-0.616206551373577,L. Johnson,Democrat,Democrats,Democrats
+1965,4,2.27776,False,4.1,1.78457,,2.8649130935999967,102.9,4.17,0.44305022770636526,-0.616206551373577,L. Johnson,Democrat,Democrats,Democrats
+1966,1,2.40469,False,3.9,2.41824,0.39604,-1.0952789464000023,100.0,4.56,0.2068428135145739,3.112654867590736,L. Johnson,Democrat,Democrats,Democrats
+1966,2,0.34089,False,3.8,2.68868,0.78741,-5.523052388800009,95.7,4.91,0.2068428135145739,3.112654867590736,L. Johnson,Democrat,Democrats,Democrats
+1966,3,0.84327,False,3.8,3.27177,1.55645,-9.314902446400009,91.2,5.41,0.2068428135145739,3.112654867590736,L. Johnson,Democrat,Democrats,Democrats
+1966,4,0.81706,False,3.7,3.56955,0.38536,10.459337955199999,88.3,5.56,0.2068428135145739,3.112654867590736,L. Johnson,Democrat,Democrats,Democrats
+1967,1,0.88189,False,3.8,2.87081,0.51151,8.576615170099998,94.1,4.82,0.4898024324898165,-4.783465302905654,L. Johnson,Democrat,Democrats,Democrats
+1967,2,0.06133,False,3.8,2.56675,1.14142,3.0604931594000018,95.9,3.99,0.4898024324898165,-4.783465302905654,L. Johnson,Democrat,Democrats,Democrats
+1967,3,0.94163,False,3.8,2.70823,0.50315,3.6340555249999795,97.0,3.89,0.4898024324898165,-4.783465302905654,L. Johnson,Democrat,Democrats,Democrats
+1967,4,0.75103,False,3.9,2.99037,-0.12555,0.12040391359997571,92.9,4.17,0.4898024324898165,-4.783465302905654,L. Johnson,Democrat,Democrats,Democrats
+1968,1,2.01876,False,3.7,3.74115,0.75094,1.4657345296000157,97.2,4.79,1.5980187639324406,1.822211820763675,L. Johnson,Democrat,Democrats,Democrats
+1968,2,1.65658,False,3.6,4.1206,-0.5,5.628051631999997,92.4,5.98,1.5980187639324406,1.822211820763675,L. Johnson,Democrat,Democrats,Democrats
+1968,3,0.77153,False,3.5,4.47761,1.12151,4.2733903904,92.4,5.95,1.5980187639324406,1.822211820763675,L. Johnson,Democrat,Democrats,Democrats
+1968,4,0.392,False,3.4,4.62598,0.12384,-1.0107223309000157,91.7,5.92,1.5980187639324406,1.822211820763675,L. Johnson,Democrat,Democrats,Democrats
+1969,1,1.55232,False,3.4,4.87329,1.3522,0.07588305679999685,98.2,6.57,0.43886238732362415,3.8227781675592487,Nixon,Republican,Democrats,Democrats
+1969,2,0.30289,False,3.4,5.50193,2.174,-5.775636781300008,91.5,8.33,0.43886238732362415,3.8227781675592487,Nixon,Republican,Democrats,Democrats
+1969,3,0.65778,False,3.6,5.52381,-0.23923,1.7029371860000087,86.4,8.98,0.43886238732362415,3.8227781675592487,Nixon,Republican,Democrats,Democrats
+1969,4,-0.4894,True,3.6,5.83255,-0.48019,-4.646226230000005,79.7,8.94,0.43886238732362415,3.8227781675592487,Nixon,Republican,Democrats,Democrats
+1970,1,-0.149,True,4.2,6.22677,-0.72464,-3.969826199999993,78.1,8.56,1.1939858389806934,-0.25229938201822844,Nixon,Republican,Democrats,Democrats
+1970,2,0.14162,False,4.8,6.03843,1.92083,-10.979246751999995,75.4,7.88,1.1939858389806934,-0.25229938201822844,Nixon,Republican,Democrats,Democrats
+1970,3,0.91725,False,5.2,5.68592,-0.47676,12.519704196799974,77.6,6.71,1.1939858389806934,-0.25229938201822844,Nixon,Republican,Democrats,Democrats
+1970,4,-1.07736,True,5.8,5.6,1.18766,11.798560979599992,72.4,5.57,1.1939858389806934,-0.25229938201822844,Nixon,Republican,Democrats,Democrats
+1971,1,2.67992,False,5.9,4.8119,-0.47337,11.027921231500004,78.1,3.86,1.785630694066076,-3.8952899392168505,Nixon,Republican,Democrats,Democrats
+1971,2,0.53936,False,5.9,4.31406,-2.03722,-3.1398556960000046,80.2,4.57,1.785630694066076,-3.8952899392168505,Nixon,Republican,Democrats,Democrats
+1971,3,0.81908,False,6.0,4.26985,2.51059,-0.9451860272000068,82.1,5.48,1.785630694066076,-3.8952899392168505,Nixon,Republican,Democrats,Democrats
+1971,4,0.23459,False,5.9,3.53535,0.58858,7.006596173599999,82.0,4.75,1.785630694066076,-3.8952899392168505,Nixon,Republican,Democrats,Democrats
+1972,1,1.82054,False,5.8,3.50584,-1.29949,6.084793950799994,92.8,3.55,1.7810718026042283,-0.14705343769813028,Nixon,Republican,Democrats,Democrats
+1972,2,2.24392,False,5.7,3.22581,-0.47676,-0.7627357199999962,88.6,4.3,1.7810718026042283,-0.14705343769813028,Nixon,Republican,Democrats,Democrats
+1972,3,0.93966,False,5.6,3.0303,2.71083,2.9548639004000066,95.2,4.74,1.7810718026042283,-0.14705343769813028,Nixon,Republican,Democrats,Democrats
+1972,4,1.66057,False,5.4,3.33333,1.50032,8.747319622499994,90.7,5.15,1.7810718026042283,-0.14705343769813028,Nixon,Republican,Democrats,Democrats
+1973,1,2.44481,False,4.9,4.1129,1.02565,-6.189493766499988,81.9,6.54,1.7599200615983746,8.709147566550591,Nixon / Ford,Republican,Democrats,Democrats
+1973,2,1.08286,False,4.9,5.60897,4.10941,-3.3534141696999975,77.0,7.82,1.7599200615983746,8.709147566550591,Nixon / Ford,Republican,Democrats,Democrats
+1973,3,-0.52723,True,4.8,6.83625,2.15294,4.581073279999992,72.0,10.56,1.7599200615983746,8.709147566550591,Nixon / Ford,Republican,Democrats,Democrats
+1973,4,0.94475,False,4.8,8.41857,6.69318,-11.717804755000005,76.5,10.0,1.7599200615983746,8.709147566550591,Nixon / Ford,Republican,Democrats,Democrats
+1974,1,-0.86342,True,5.1,9.91479,16.06746,-2.9286582321999988,61.8,9.33,0.910681845559691,0.10072050320475423,Nixon / Ford,Republican,Democrats,Democrats
+1974,2,0.23741,False,5.2,10.54628,10.07698,-13.355676109000003,72.1,11.25,0.910681845559691,0.10072050320475423,Nixon / Ford,Republican,Democrats,Democrats
+1974,3,-0.94977,True,5.6,11.45833,1.21953,-11.332392251199986,64.4,12.1,0.910681845559691,0.10072050320475423,Nixon / Ford,Republican,Democrats,Democrats
+1974,4,-0.38916,True,6.6,12.04644,-4.25596,5.829772794200028,59.5,9.34,0.910681845559691,0.10072050320475423,Nixon / Ford,Republican,Democrats,Democrats
+1975,1,-1.22511,True,8.3,11.1346,0.55183,18.0503841293,57.6,6.31,2.9279258725601665,-0.47510715395497893,Ford,Republican,Democrats,Democrats
+1975,2,0.71216,False,8.9,9.54015,3.62834,10.266032851700002,72.8,5.42,2.9279258725601665,-0.47510715395497893,Ford,Republican,Democrats,Democrats
+1975,3,1.69755,False,8.5,8.67824,7.16681,-3.207687849999996,75.7,6.16,2.9279258725601665,-0.47510715395497893,Ford,Republican,Democrats,Democrats
+1975,4,1.3381,False,8.3,7.38342,-0.77932,10.465759123999984,75.6,5.41,2.9279258725601665,-0.47510715395497893,Ford,Republican,Democrats,Democrats
+1976,1,2.22454,False,7.7,6.34115,-1.93902,6.168587840000006,84.6,4.83,3.861221757300859,2.133010270590052,Ford,Republican,Democrats,Democrats
+1976,2,0.7307,False,7.6,6.01504,0.21731,3.200372685999975,83.3,5.2,3.861221757300859,2.133010270590052,Ford,Republican,Democrats,Democrats
+1976,3,0.54591,False,7.7,5.58968,3.97215,-1.3017070496000094,89.7,5.28,3.861221757300859,2.133010270590052,Ford,Republican,Democrats,Democrats
+1976,4,0.72001,False,7.8,5.18697,0.13899,2.847584724200014,87.0,4.87,3.861221757300859,2.133010270590052,Ford,Republican,Democrats,Democrats
+1977,1,1.17925,False,7.5,5.9034,0.82988,-3.580031101500003,87.1,4.66,3.019803325522785,-0.8183250858578184,Carter,Democrat,Democrats,Democrats
+1977,2,1.92331,False,7.1,6.79669,3.05212,2.25283491199999,90.2,5.16,3.019803325522785,-0.8183250858578184,Carter,Democrat,Democrats,Democrats
+1977,3,1.7871,False,6.9,6.57359,0.93086,-5.36427596800001,89.0,5.82,3.019803325522785,-0.8183250858578184,Carter,Democrat,Democrats,Democrats
+1977,4,0.00199,False,6.7,6.59404,-0.39788,-2.5212674223999976,84.4,6.51,3.019803325522785,-0.8183250858578184,Carter,Democrat,Democrats,Democrats
+1978,1,0.31933,False,6.3,6.47523,-0.13298,4.093444502299981,82.3,6.76,2.505161875338402,-1.4240270168018876,Carter,Democrat,Democrats,Democrats
+1978,2,3.79196,False,6.0,7.02822,1.25621,6.14312588999999,81.5,7.28,2.505161875338402,-1.4240270168018876,Carter,Democrat,Democrats,Democrats
+1978,3,1.00072,False,6.0,8.02402,3.80323,4.774386836,80.4,8.09,2.505161875338402,-1.4240270168018876,Carter,Democrat,Democrats,Democrats
+1978,4,1.33517,False,5.9,8.92953,2.18964,0.413687628800008,73.5,9.58,2.505161875338402,-1.4240270168018876,Carter,Democrat,Democrats,Democrats
+1979,1,0.17943,False,5.9,9.78318,4.94971,3.7156972628000107,71.5,10.07,1.7356199314924048,2.1910623755363456,Carter,Democrat,Democrats,Democrats
+1979,2,0.10669,False,5.7,10.75491,15.06109,1.9111385203999909,66.6,10.18,1.7356199314924048,2.1910623755363456,Carter,Democrat,Democrats,Democrats
+1979,3,0.74006,False,5.9,11.72309,15.54525,3.0551443410000045,63.9,10.94,1.7356199314924048,2.1910623755363456,Carter,Democrat,Democrats,Democrats
+1979,4,0.24973,False,6.0,12.64198,5.7303,7.510501952000004,62.1,13.58,1.7356199314924048,2.1910623755363456,Carter,Democrat,Democrats,Democrats
+1980,1,0.31408,False,6.3,14.21002,14.00112,-5.871030688000001,63.5,15.07,2.369950451411973,-0.44401215883757006,Carter,Democrat,Democrats,Democrats
+1980,2,-2.08196,True,7.3,14.42577,5.77516,17.824357476800003,54.4,12.67,2.369950451411973,-0.44401215883757006,Carter,Democrat,Democrats,Democrats
+1980,3,-0.11893,True,7.7,12.93532,-0.10086,9.97318807999996,67.8,9.82,2.369950451411973,-0.44401215883757006,Carter,Democrat,Democrats,Democrats
+1980,4,1.84775,False,7.4,12.53836,-0.98023,3.3231672836000037,72.1,15.85,2.369950451411973,-0.44401215883757006,Carter,Democrat,Democrats,Democrats
+1981,1,1.94047,False,7.4,11.26107,8.74359,2.245065435800009,68.3,16.6,2.3955671868365114,1.9211904132357294,Reagan,Republican,Democrats,Republicans
+1981,2,-0.74384,True,7.4,9.87352,2.76261,-2.778298573600013,73.9,17.79,2.3955671868365114,1.9211904132357294,Reagan,Republican,Democrats,Republicans
+1981,3,1.19039,False,7.4,10.85302,-1.18777,-5.967298719999992,74.8,17.59,2.3955671868365114,1.9211904132357294,Reagan,Republican,Democrats,Republicans
+1981,4,-1.09558,True,8.2,9.58317,-0.61463,-0.7484098560000096,65.7,13.59,2.3955671868365114,1.9211904132357294,Reagan,Republican,Democrats,Republicans
+1982,1,-1.56584,True,8.8,7.5815,-3.25843,0.6208416697999875,66.5,14.21,3.4315180874066264,-0.700699531331761,Reagan,Republican,Democrats,Republicans
+1982,2,0.45514,False,9.4,6.9068,-5.12933,-4.501391093600004,66.2,14.51,3.4315180874066264,-0.700699531331761,Reagan,Republican,Democrats,Republicans
+1982,3,-0.383,True,9.9,5.81647,5.44729,23.018710391999985,66.7,11.01,3.4315180874066264,-0.700699531331761,Reagan,Republican,Democrats,Republicans
+1982,4,0.04,False,10.7,4.44365,-2.76812,10.083903159999984,72.5,9.28,3.4315180874066264,-0.700699531331761,Reagan,Republican,Democrats,Republicans
+1983,1,1.30918,False,10.4,3.59408,-7.17007,10.537893102000018,75.3,8.66,4.792519822436603,1.125335653440107,Reagan,Republican,Democrats,Republicans
+1983,2,2.25002,False,10.1,3.29976,4.95913,7.001706185000023,91.5,8.8,4.792519822436603,1.125335653440107,Reagan,Republican,Democrats,Republicans
+1983,3,1.97924,False,9.4,2.52646,2.69931,1.4755604884999718,91.2,9.46,4.792519822436603,1.125335653440107,Reagan,Republican,Democrats,Republicans
+1983,4,2.06472,False,8.5,3.23349,-2.59926,0.2914394156000144,91.5,9.43,4.792519822436603,1.125335653440107,Reagan,Republican,Democrats,Republicans
+1984,1,1.93593,False,7.9,4.62585,-2.4976,-4.206415668399998,99.5,9.69,3.3668933376672205,2.663222940973231,Reagan,Republican,Democrats,Republicans
+1984,2,1.71301,False,7.4,4.40484,1.59352,-2.986307087499984,96.6,10.55,3.3668933376672205,2.663222940973231,Reagan,Republican,Democrats,Republicans
+1984,3,0.95939,False,7.4,4.2957,-2.00448,10.295786569900024,98.9,11.39,3.3668933376672205,2.663222940973231,Reagan,Republican,Democrats,Republicans
+1984,4,0.81742,False,7.3,4.1543,0.17144,5.297670526999987,95.0,9.26,3.3668933376672205,2.663222940973231,Reagan,Republican,Democrats,Republicans
+1985,1,0.96431,False,7.2,3.64109,-3.37952,6.356086521600002,94.5,8.48,3.7698755012387064,-4.889151966740235,Reagan,Republican,Democrats,Republicans
+1985,2,0.87662,False,7.3,3.60709,6.44942,7.688446414999994,94.3,7.92,3.7698755012387064,-4.889151966740235,Reagan,Republican,Democrats,Republicans
+1985,3,1.51573,False,7.2,3.35249,0.43096,-2.2506483000000133,92.8,7.9,3.7698755012387064,-4.889151966740235,Reagan,Republican,Democrats,Republicans
+1985,4,0.7407,False,7.0,3.51377,-1.56696,12.889990135000007,91.1,8.1,3.7698755012387064,-4.889151966740235,Reagan,Republican,Democrats,Republicans
+1986,1,0.92942,False,7.0,3.1054,-8.84787,15.307423923999997,95.5,7.83,3.908815178072267,1.6317324076987383,Reagan,Republican,Democrats,Republicans
+1986,2,0.44929,False,7.2,1.67858,-17.39863,1.7699009340000016,96.8,6.92,3.908815178072267,1.6317324076987383,Reagan,Republican,Democrats,Republicans
+1986,3,0.95212,False,7.0,1.66821,-6.03243,-0.3258755208000008,94.8,6.21,3.908815178072267,1.6317324076987383,Reagan,Republican,Democrats,Republicans
+1986,4,0.53496,False,6.8,1.34557,-3.97591,12.323897212099988,92.0,6.27,3.908815178072267,1.6317324076987383,Reagan,Republican,Democrats,Republicans
+1987,1,0.73911,False,6.6,2.03833,8.28986,10.167290647199989,90.5,6.22,2.547378674881373,-1.5565474265387125,Reagan,Republican,Democrats,Democrats
+1987,2,1.07241,False,6.3,3.69917,5.65904,7.943592679999978,91.8,6.65,2.547378674881373,-1.5565474265387125,Reagan,Republican,Democrats,Democrats
+1987,3,0.86344,False,6.0,4.16287,5.03689,-9.007545952500017,93.9,6.84,2.547378674881373,-1.5565474265387125,Reagan,Republican,Democrats,Democrats
+1987,4,1.70238,False,5.8,4.40555,-0.96309,-9.788732425000003,86.4,6.92,2.547378674881373,-1.5565474265387125,Reagan,Republican,Democrats,Democrats
+1988,1,0.51555,False,5.7,3.96541,-5.42689,5.718217724899999,92.3,6.67,2.579636611821523,0.5464032276249364,Reagan,Republican,Democrats,Democrats
+1988,2,1.30547,False,5.5,3.97995,2.8951,3.3571963400000016,93.6,7.15,2.579636611821523,0.5464032276249364,Reagan,Republican,Democrats,Democrats
+1988,3,0.58426,False,5.5,4.14236,3.17487,3.9835225520000295,96.0,7.98,2.579636611821523,0.5464032276249364,Reagan,Republican,Democrats,Democrats
+1988,4,1.32366,False,5.3,4.30636,-2.55644,3.782162983400017,93.0,8.47,2.579636611821523,0.5464032276249364,Reagan,Republican,Democrats,Democrats
+1989,1,1.01126,False,5.2,4.67451,-1.03285,6.806316031999993,95.9,9.45,2.365361071110361,5.442210203586839,G.H.W. Bush,Republican,Democrats,Democrats
+1989,2,0.7602,False,5.2,5.16019,16.85225,10.663858703999995,90.9,9.73,2.365361071110361,5.442210203586839,G.H.W. Bush,Republican,Democrats,Democrats
+1989,3,0.73801,False,5.2,4.70588,-3.75379,5.476571564599975,92.5,9.08,2.365361071110361,5.442210203586839,G.H.W. Bush,Republican,Democrats,Democrats
+1989,4,0.19679,False,5.4,4.62732,-4.92821,-1.3490509725999855,91.8,8.61,2.365361071110361,5.442210203586839,G.H.W. Bush,Republican,Democrats,Democrats
+1990,1,1.08695,False,5.3,5.23288,3.23823,0.31165987399999207,91.3,8.25,3.1378361936627464,1.1486212384098415,G.H.W. Bush,Republican,Democrats,Democrats
+1990,2,0.36231,False,5.3,4.58345,2.95696,7.324186476499994,90.9,8.24,3.1378361936627464,1.1486212384098415,G.H.W. Bush,Republican,Democrats,Democrats
+1990,3,0.06656,False,5.7,5.56447,10.66906,-13.903750076799993,79.1,8.16,3.1378361936627464,1.1486212384098415,G.H.W. Bush,Republican,Democrats,Democrats
+1990,4,-0.91457,True,6.1,6.27648,13.63967,6.963605204200007,65.1,7.74,3.1378361936627464,1.1486212384098415,G.H.W. Bush,Republican,Democrats,Democrats
+1991,1,-0.46904,True,6.6,5.25905,-16.19383,17.6020105344,75.0,6.43,3.1847529572872846,-0.6059296774833967,G.H.W. Bush,Republican,Democrats,Democrats
+1991,2,0.77667,False,6.8,4.84661,-1.60485,0.9506910860000106,80.7,5.86,3.1847529572872846,-0.6059296774833967,G.H.W. Bush,Republican,Democrats,Democrats
+1991,3,0.50409,False,6.9,3.852,0.20202,2.556229527999987,82.6,5.65,3.1847529572872846,-0.6059296774833967,G.H.W. Bush,Republican,Democrats,Democrats
+1991,4,0.34794,False,7.1,2.96536,-0.64114,8.39085783679998,71.9,4.82,3.1847529572872846,-0.6059296774833967,G.H.W. Bush,Republican,Democrats,Democrats
+1992,1,1.19014,False,7.4,2.89389,-5.28267,-1.3481102440000114,70.8,4.02,2.618939916512897,-2.940821366088542,G.H.W. Bush,Republican,Democrats,Democrats
+1992,2,1.07847,False,7.6,3.07352,5.89017,2.636077157899974,78.9,3.77,2.618939916512897,-2.940821366088542,G.H.W. Bush,Republican,Democrats,Democrats
+1992,3,0.98326,False,7.6,3.07467,3.08124,0.12795385040000884,76.1,3.26,2.618939916512897,-2.940821366088542,G.H.W. Bush,Republican,Democrats,Democrats
+1992,4,1.03746,False,7.4,3.12197,-0.88482,6.268820352800009,83.2,3.03,2.618939916512897,-2.940821366088542,G.H.W. Bush,Republican,Democrats,Democrats
+1993,1,0.1668,False,7.1,3.17308,-3.48327,2.514626468000025,87.3,3.04,2.068396570066744,1.8984665860742878,Clinton,Democrat,Democrats,Democrats
+1993,2,0.58048,False,7.1,3.125,1.35412,1.657221758399996,82.5,3.0,2.068396570066744,1.8984665860742878,Clinton,Democrat,Democrats,Democrats
+1993,3,0.47602,False,6.8,2.81723,-2.24423,4.412618623999998,77.4,3.06,2.068396570066744,1.8984665860742878,Clinton,Democrat,Democrats,Democrats
+1993,4,1.35098,False,6.6,2.7693,0.13746,2.655750548599989,84.0,2.99,2.068396570066744,1.8984665860742878,Clinton,Democrat,Democrats,Democrats
+1994,1,0.96569,False,6.6,2.53961,-4.71089,-4.798652055999996,93.0,3.21,1.5571618005153276,-0.6191237809358374,Clinton,Democrat,Democrats,Democrats
+1994,2,1.34608,False,6.2,2.3826,3.53644,1.6504208168000023,92.2,3.94,1.5571618005153276,-0.6191237809358374,Clinton,Democrat,Democrats,Democrats
+1994,3,0.58288,False,6.0,2.85517,6.81586,3.467984873600005,90.7,4.49,1.5571618005153276,-0.6191237809358374,Clinton,Democrat,Democrats,Democrats
+1994,4,1.13906,False,5.6,2.60333,-1.17533,1.0196043694999934,93.1,5.17,1.5571618005153276,-0.6191237809358374,Clinton,Democrat,Democrats,Democrats
+1995,1,0.35415,False,5.5,2.84026,-3.74751,9.906376902400016,94.3,5.8,1.4656914987312808,1.298691707229782,Clinton,Democrat,Republicans,Republicans
+1995,2,0.29788,False,5.7,3.09535,5.4731,10.422126815000032,91.7,6.02,1.4656914987312808,1.298691707229782,Clinton,Democrat,Republicans,Republicans
+1995,3,0.84713,False,5.7,2.66398,-1.75843,5.197637645200026,93.2,5.8,1.4656914987312808,1.298691707229782,Clinton,Democrat,Republicans,Republicans
+1995,4,0.67679,False,5.6,2.62631,-4.84617,5.999332006400038,89.8,5.72,1.4656914987312808,1.298691707229782,Clinton,Democrat,Republicans,Republicans
+1996,1,0.74626,False,5.5,2.78392,2.41879,5.899576399999984,90.5,5.37,1.2375375416489698,3.8985474304277012,Clinton,Democrat,Republicans,Republicans
+1996,2,1.65419,False,5.5,2.82709,11.25711,0.052709216000002,91.5,5.24,1.2375375416489698,3.8985474304277012,Clinton,Democrat,Republicans,Republicans
+1996,3,0.89303,False,5.3,2.90013,-3.64456,9.494899299199977,94.9,5.31,1.2375375416489698,3.8985474304277012,Clinton,Democrat,Republicans,Republicans
+1996,4,1.03302,False,5.3,3.2314,-0.12484,9.77632556000001,97.5,5.28,1.2375375416489698,3.8985474304277012,Clinton,Democrat,Republicans,Republicans
+1997,1,0.64337,False,5.2,2.94497,0.28068,0.17635579120001132,99.0,5.28,0.889226041305724,-0.3852688344446853,Clinton,Democrat,Republicans,Republicans
+1997,2,1.65151,False,5.0,2.30179,-1.60104,21.65635277519997,103.0,5.52,0.889226041305724,-0.3852688344446853,Clinton,Democrat,Republicans,Republicans
+1997,3,1.24084,False,4.9,2.22505,1.28912,3.2196437225000096,105.8,5.53,0.889226041305724,-0.3852688344446853,Clinton,Democrat,Republicans,Republicans
+1997,4,0.85024,False,4.7,1.89076,-2.59508,1.6932344119999998,105.0,5.51,0.889226041305724,-0.3852688344446853,Clinton,Democrat,Republicans,Republicans
+1998,1,0.99875,False,4.6,1.48256,-10.4328,15.870739544000001,107.8,5.52,0.5180550798703276,-0.8330691600937024,Clinton,Democrat,Republicans,Republicans
+1998,2,0.92143,False,4.4,1.58333,-0.49947,4.365254199199997,106.9,5.5,0.5180550798703276,-0.8330691600937024,Clinton,Democrat,Republicans,Republicans
+1998,3,1.25108,False,4.5,1.59619,-2.09621,-10.387187263000008,103.5,5.53,0.5180550798703276,-0.8330691600937024,Clinton,Democrat,Republicans,Republicans
+1998,4,1.59639,False,4.4,1.52577,-3.19137,21.35351838499997,100.2,4.86,0.5180550798703276,-0.8330691600937024,Clinton,Democrat,Republicans,Republicans
+1999,1,0.93505,False,4.3,1.68724,-4.5515,7.218994129999978,105.9,4.73,0.5833365816731106,-1.4182363498854378,Clinton,Democrat,Republicans,Republicans
+1999,2,0.83128,False,4.3,2.11239,16.81463,3.7785455719999916,106.2,4.75,0.5833365816731106,-1.4182363498854378,Clinton,Democrat,Republicans,Republicans
+1999,3,1.31717,False,4.2,2.34646,6.14484,-5.562168274000001,105.9,5.1,0.5833365816731106,-1.4182363498854378,Clinton,Democrat,Republicans,Republicans
+1999,4,1.62735,False,4.1,2.61982,3.33159,9.987647250800013,105.3,5.3,0.5833365816731106,-1.4182363498854378,Clinton,Democrat,Republicans,Republicans
+2000,1,0.36214,False,4.0,3.25779,8.8502,2.8016324895999922,110.1,5.68,0.07905423837051284,0.7115432973961111,Clinton,Democrat,Republicans,Republicans
+2000,2,1.8049,False,3.9,3.29383,8.94614,1.082213176000013,108.8,6.27,0.07905423837051284,0.7115432973961111,Clinton,Democrat,Republicans,Republicans
+2000,3,0.10188,False,4.0,3.4689,0.91002,-5.352329080800001,107.5,6.52,0.07905423837051284,0.7115432973961111,Clinton,Democrat,Republicans,Republicans
+2000,4,0.59526,False,3.9,3.4435,-1.49578,-3.623132405600016,103.9,6.47,0.07905423837051284,0.7115432973961111,Clinton,Democrat,Republicans,Republicans
+2001,1,-0.32834,True,4.2,3.40976,-4.06624,-10.625303596000002,92.3,5.6,0.5821414332006114,0.8436401276305627,G.W. Bush,Republican,Republicans,Republicans / Democrats12
+2001,2,0.62256,False,4.4,3.32491,11.11696,1.5505078911999925,91.0,4.33,0.5821414332006114,0.8436401276305627,G.W. Bush,Republican,Republicans,Republicans / Democrats12
+2001,3,-0.40144,True,4.8,2.67823,-10.87782,-10.304981125000001,88.6,3.5,0.5821414332006114,0.8436401276305627,G.W. Bush,Republican,Republicans,Republicans / Democrats12
+2001,4,0.2744,False,5.5,1.87488,-17.9777,6.274452294999988,85.1,2.13,0.5821414332006114,0.8436401276305627,G.W. Bush,Republican,Republicans,Republicans / Democrats12
+2002,1,0.83288,False,5.7,1.23176,-4.18417,-2.1261645424999975,93.1,1.73,1.764111216355313,0.3192581654087201,G.W. Bush,Republican,Republicans,Republicans / Democrats12
+2002,2,0.61084,False,5.8,1.31728,17.90591,-18.4105951744,94.1,1.75,1.764111216355313,0.3192581654087201,G.W. Bush,Republican,Republicans,Republicans / Democrats12
+2002,3,0.40569,False,5.7,1.57628,0.33177,-4.993926583200004,87.3,1.74,1.764111216355313,0.3192581654087201,G.W. Bush,Republican,Republicans,Republicans / Democrats12
+2002,4,0.12353,False,5.9,2.25352,1.23441,5.288901694400017,83.8,1.44,1.764111216355313,0.3192581654087201,G.W. Bush,Republican,Republicans,Republicans / Democrats12
+2003,1,0.52526,False,5.9,2.97641,11.81465,-0.16820306590000778,80.0,1.25,2.1569429665285966,3.0867797793255214,G.W. Bush,Republican,Republicans,Republicans
+2003,2,0.88172,False,6.1,2.00594,-3.14987,11.980546019999982,89.3,1.25,2.1569429665285966,3.0867797793255214,G.W. Bush,Republican,Republicans,Republicans
+2003,3,1.64952,False,6.1,2.21689,3.6573,5.075215948400014,89.3,1.02,2.1569429665285966,3.0867797793255214,G.W. Bush,Republican,Republicans,Republicans
+2003,4,1.15404,False,5.8,2.00184,-5.21944,9.449362381799986,92.0,1.0,2.1569429665285966,3.0867797793255214,G.W. Bush,Republican,Republicans,Republicans
+2004,1,0.56505,False,5.7,1.81785,8.42142,0.46806500389999783,98.0,1.0,2.1271000770169524,1.4703266967765805,G.W. Bush,Republican,Republicans,Republicans
+2004,2,0.77196,False,5.6,2.78587,15.01411,-2.018295961599992,93.3,1.01,2.1271000770169524,1.4703266967765805,G.W. Bush,Republican,Republicans,Republicans
+2004,3,0.94412,False,5.4,2.67486,-2.35783,1.4527093579999706,95.6,1.43,2.1271000770169524,1.4703266967765805,G.W. Bush,Republican,Republicans,Republicans
+2004,4,1.01504,False,5.4,3.38495,3.51622,6.177213016500027,93.9,1.95,2.1271000770169524,1.4703266967765805,G.W. Bush,Republican,Republicans,Republicans
+2005,1,1.10326,False,5.3,3.03517,-1.92468,-1.0284847312000078,94.1,2.47,1.8251918186885652,-3.9070821879740314,G.W. Bush,Republican,Republicans,Republicans
+2005,2,0.49142,False,5.1,2.92294,13.39362,5.423452737199996,90.2,2.94,1.8251918186885652,-3.9070821879740314,G.W. Bush,Republican,Republicans,Republicans
+2005,3,0.78076,False,5.0,3.81975,15.07556,-2.0446127415999937,87.5,3.46,1.8251918186885652,-3.9070821879740314,G.W. Bush,Republican,Republicans,Republicans
+2005,4,0.55398,False,5.0,3.67468,-5.63794,7.745659736800015,82.4,3.98,1.8251918186885652,-3.9070821879740314,G.W. Bush,Republican,Republicans,Republicans
+2006,1,1.33641,False,4.7,3.69087,-3.40849,2.2814596159999923,88.9,4.45,1.7626446894998038,1.1699873752709644,G.W. Bush,Republican,Republicans,Republicans
+2006,2,0.25842,False,4.6,3.92427,19.83342,-2.783636855199989,83.8,4.91,1.7626446894998038,1.1699873752709644,G.W. Bush,Republican,Republicans,Republicans
+2006,3,0.14984,False,4.6,3.34012,-0.64459,8.674518319400004,84.0,5.25,1.7626446894998038,1.1699873752709644,G.W. Bush,Republican,Republicans,Republicans
+2006,4,0.85578,False,4.4,1.9654,-22.37285,4.911931699999994,92.5,5.24,1.7626446894998038,1.1699873752709644,G.W. Bush,Republican,Republicans,Republicans
+2007,1,0.30038,False,4.5,2.43165,4.28824,3.232462064000008,92.2,5.25,1.4399768217195241,5.865728789434388,G.W. Bush,Republican,Democrats,Democrats13
+2007,2,0.6099,False,4.5,2.66529,23.39159,4.332852698200029,86.9,5.25,1.4399768217195241,5.865728789434388,G.W. Bush,Republican,Democrats,Democrats13
+2007,3,0.57437,False,4.7,2.34897,-5.28167,1.693417693999999,85.7,5.07,1.4399768217195241,5.865728789434388,G.W. Bush,Republican,Democrats,Democrats13
+2007,4,0.62627,False,4.8,4.03114,3.85441,-10.028635638400008,77.5,4.5,1.4399768217195241,5.865728789434388,G.W. Bush,Republican,Democrats,Democrats13
+2008,1,-0.42768,True,5.0,4.13704,4.92317,-0.08488841279999937,72.9,3.18,2.7105842080476394,3.133851324847936,G.W. Bush,Republican,Democrats,Democrats13
+2008,2,0.59366,False,5.3,4.31042,18.67865,-7.769432959999989,59.6,2.08,2.7105842080476394,3.133851324847936,G.W. Bush,Republican,Democrats,Democrats13
+2008,3,-0.52664,True,6.0,5.2525,2.65347,-22.458467563500008,64.8,1.94,2.7105842080476394,3.133851324847936,G.W. Bush,Republican,Democrats,Democrats13
+2008,4,-2.21334,True,6.9,1.5958,-49.85553,-9.931636484999995,57.7,0.51,2.7105842080476394,3.133851324847936,G.W. Bush,Republican,Democrats,Democrats13
+2009,1,-1.14136,True,8.3,-0.18424,-20.02461,-1.1682504639999869,58.3,0.18,4.40186713038575,-4.228500423232973,Obama,Democrat,Democrats,Democrats
+2009,2,-0.17881,True,9.3,-0.94214,19.89683,11.125572617599966,68.2,0.18,4.40186713038575,-4.228500423232973,Obama,Democrat,Democrats,Democrats
+2009,3,0.35058,False,9.6,-1.60696,10.76105,14.75597312000001,68.4,0.15,4.40186713038575,-4.228500423232973,Obama,Democrat,Democrats,Democrats
+2009,4,1.07511,False,9.9,1.48766,1.04058,5.785992855200006,70.2,0.12,4.40186713038575,-4.228500423232973,Obama,Democrat,Democrats,Democrats
+2010,1,0.48333,False,9.8,2.35257,4.04368,7.075030565999985,73.9,0.13,3.3002887617869847,0.36485211732444345,Obama,Democrat,Democrats,Democrats
+2010,2,0.96293,False,9.6,1.77527,3.70548,-9.357109043200007,73.9,0.19,3.3002887617869847,0.36485211732444345,Obama,Democrat,Democrats,Democrats
+2010,3,0.76813,False,9.5,1.20288,-3.31399,9.03404337560001,68.3,0.19,3.3002887617869847,0.36485211732444345,Obama,Democrat,Democrats,Democrats
+2010,4,0.52374,False,9.5,1.22978,5.30199,9.970095313399984,71.3,0.19,3.3002887617869847,0.36485211732444345,Obama,Democrat,Democrats,Democrats
+2011,1,-0.23749,True,9.0,2.14822,12.59091,4.2695467769999995,73.1,0.15,2.191935515863075,2.1220695914337284,Obama,Democrat,Republicans,Democrats
+2011,2,0.6743,False,9.1,3.34611,15.59075,-0.017904836000004476,71.9,0.09,2.191935515863075,2.1220695914337284,Obama,Democrat,Republicans,Democrats
+2011,3,-0.02232,True,9.0,3.71595,-4.89174,-8.423296768,59.7,0.08,2.191935515863075,2.1220695914337284,Obama,Democrat,Republicans,Democrats
+2011,4,1.11679,False,8.6,3.34473,-7.1025,8.28744239300001,64.8,0.07,2.191935515863075,2.1220695914337284,Obama,Democrat,Republicans,Democrats
+2012,1,0.83509,False,8.3,2.82932,6.3031,7.116944076800014,75.5,0.1,2.0901942689896202,0.7685754995754523,Obama,Democrat,Republicans,Democrats
+2012,2,0.44534,False,8.2,1.88792,3.96884,-1.4072353780000157,76.3,0.15,2.0901942689896202,0.7685754995754523,Obama,Democrat,Republicans,Democrats
+2012,3,0.14392,False,8.0,1.68486,-2.1874,6.278050768400001,75.0,0.14,2.0901942689896202,0.7685754995754523,Obama,Democrat,Republicans,Democrats
+2012,4,0.11557,False,7.8,1.90357,-3.84963,3.517262357600015,79.4,0.16,2.0901942689896202,0.7685754995754523,Obama,Democrat,Republicans,Democrats
+2013,1,0.98173,False,7.7,1.7402,1.58791,6.637519952000015,76.7,0.14,1.029571098231874,0.7924392570901162,Obama,Democrat,Republicans,Democrats
+2013,2,0.26728,False,7.5,1.41472,0.99322,6.759277520000007,81.7,0.12,1.029571098231874,0.7924392570901162,Obama,Democrat,Republicans,Democrats
+2013,3,0.84779,False,7.2,1.50495,-0.52136,3.5935660700000094,81.6,0.09,1.029571098231874,0.7924392570901162,Obama,Democrat,Republicans,Democrats
+2013,4,0.86796,False,6.9,1.2073,-8.06558,6.461427118400009,76.9,0.09,1.029571098231874,0.7924392570901162,Obama,Democrat,Republicans,Democrats
+2014,1,-0.34569,True,6.7,1.42991,3.12055,2.7916369280000186,80.9,0.07,1.5838449450219505,1.9520226236835692,Obama,Democrat,Republicans,Democrats
+2014,2,1.28357,False,6.2,2.08034,7.66953,6.350644400000016,82.8,0.09,1.5838449450219505,1.9520226236835692,Obama,Democrat,Republicans,Democrats
+2014,3,1.20806,False,6.1,1.79097,-4.5964,-1.3432261689999891,83.0,0.09,1.5838449450219505,1.9520226236835692,Obama,Democrat,Republicans,Democrats
+2014,4,0.50446,False,5.7,1.16401,-19.11786,5.195199699699993,89.8,0.1,1.5838449450219505,1.9520226236835692,Obama,Democrat,Republicans,Democrats
+2015,1,0.89645,False,5.5,-0.11289,-23.11338,3.7971449423999992,95.5,0.11,0.4548996124597249,3.864693639170147,Obama,Democrat,Republicans,Republicans
+2015,2,0.61749,False,5.4,0.03701,15.86682,0.4552594496000095,94.2,0.13,0.4548996124597249,3.864693639170147,Obama,Democrat,Republicans,Republicans
+2015,3,0.39945,False,5.1,0.15861,-2.37356,-2.795519065600016,90.7,0.13,0.4548996124597249,3.864693639170147,Obama,Democrat,Republicans,Republicans
+2015,4,0.18431,False,5.0,0.40047,-17.99168,-4.737646833999998,91.3,0.16,0.4548996124597249,3.864693639170147,Obama,Democrat,Republicans,Republicans
+2016,1,0.57785,False,4.9,0.99184,-13.67905,8.768453066000003,91.6,0.36,1.904641083676295,-6.519272734762849,Obama,Democrat,Republicans,Republicans
+2016,2,0.32061,False,4.9,1.11003,17.33982,4.092094069999996,92.4,0.37,1.904641083676295,-6.519272734762849,Obama,Democrat,Republicans,Republicans
+2016,3,0.70689,False,4.9,1.15715,-2.06435,0.2408709280000032,90.3,0.39,1.904641083676295,-6.519272734762849,Obama,Democrat,Republicans,Republicans
+2016,4,0.55277,False,4.8,1.80698,1.2642,6.712242560000026,93.1,0.45,1.904641083676295,-6.519272734762849,Obama,Democrat,Republicans,Republicans
+2017,1,0.48571,False,4.6,2.58713,4.46363,4.218587275000019,97.2,0.7,0.8467933002676453,-2.602305690923179,Trump,Republican,Republicans,Republicans
+2017,2,0.55831,False,4.4,1.89059,2.45312,4.524732811800014,96.4,0.95,0.8467933002676453,-2.602305690923179,Trump,Republican,Republicans,Republicans
+2017,3,0.78543,False,4.3,1.94494,2.14475,4.68610761249999,95.1,1.15,0.8467933002676453,-2.602305690923179,Trump,Republican,Republicans,Republicans
+2017,4,1.12074,False,4.2,2.10778,2.80489,9.595259491199993,98.4,1.2,0.8467933002676453,-2.602305690923179,Trump,Republican,Republicans,Republicans
+2018,1,0.81012,False,4.0,2.24862,2.76597,-4.444727215599997,98.9,1.45,1.5340637311286986,2.476971822724683,Trump,Republican,Republicans,Republicans
+2018,2,0.52942,False,3.9,2.68679,10.33687,5.756315424799996,98.3,1.74,1.5340637311286986,2.476971822724683,Trump,Republican,Republicans,Republicans
+2018,3,0.62176,False,3.8,2.60892,0.51361,0.16057033999998804,98.1,1.93,1.5340637311286986,2.476971822724683,Trump,Republican,Republicans,Republicans
+2018,4,0.14154,False,3.8,2.21352,-7.48238,-5.915275724799995,98.1,2.22,1.5340637311286986,2.476971822724683,Trump,Republican,Republicans,Republicans
+2019,1,0.62238,False,3.9,1.63002,-10.2147,11.907330082000001,94.5,2.4,1.3697896579024205,-2.7541140785875107,Trump,Republican,Democrats,Republicans
+2019,2,0.83168,False,3.6,1.82238,16.26832,3.672780614000004,98.5,2.4,1.3697896579024205,-2.7541140785875107,Trump,Republican,Democrats,Republicans
+2019,3,1.16321,False,3.6,1.7494,-4.94829,-0.12673067170001495,93.8,2.19,1.3697896579024205,-2.7541140785875107,Trump,Republican,Democrats,Republicans
+2019,4,0.67956,False,3.6,2.04859,-1.78148,10.594236603500008,97.2,1.65,1.3697896579024205,-2.7541140785875107,Trump,Republican,Democrats,Republicans
+2020,1,-1.40223,True,3.8,2.1239,-7.29567,-15.315844812800005,96.6,1.25,4.357075617848727,1.0258995871004206,Trump,Republican,Democrats,Republicans
+2020,2,-8.23926,True,13.0,0.4226,-21.39773,16.70830267719998,74.1,0.06,4.357075617848727,1.0258995871004206,Trump,Republican,Democrats,Republicans
+2020,3,7.53878,False,8.8,1.23095,11.18796,7.043249048900013,75.7,0.09,4.357075617848727,1.0258995871004206,Trump,Republican,Democrats,Republicans
+2020,4,1.07888,False,6.8,1.22598,-1.78467,11.41286156000001,79.8,0.09,4.357075617848727,1.0258995871004206,Trump,Republican,Democrats,Republicans
+2021,1,1.37075,False,6.2,1.89475,16.39871,9.550909163599997,80.2,0.08,1.3488818475449138,1.0791806086395628,Biden,Democrat,Democrats,Democrats14
+2021,2,1.55785,False,5.9,4.79728,14.80702,5.733077309200008,85.6,0.07,1.3488818475449138,1.0791806086395628,Biden,Democrat,Democrats,Democrats14
+2021,3,0.84923,False,5.1,5.26471,5.77938,2.5677351159999917,74.8,0.09,1.3488818475449138,1.0791806086395628,Biden,Democrat,Democrats,Democrats14
+2021,4,1.78709,False,4.2,6.75376,5.1356,2.869830641000015,69.9,0.08,1.3488818475449138,1.0791806086395628,Biden,Democrat,Democrats,Democrats14
+2022,1,-0.25779,True,3.8,8.02353,9.5405,-3.6487070279999867,63.1,0.12,2.1294691388894504,6.354832112063957,Biden,Democrat,Democrats,Democrats14
+2022,2,0.07015,False,3.6,8.59334,20.69052,-10.56526499260001,57.9,0.77,2.1294691388894504,6.354832112063957,Biden,Democrat,Democrats,Democrats14
+2022,3,0.67095,False,3.5,8.28869,-9.72515,-4.349403596000001,56.1,2.18,2.1294691388894504,6.354832112063957,Biden,Democrat,Democrats,Democrats14
+2022,4,0.82442,False,3.6,7.0908,-12.16175,6.753676300200007,58.8,3.65,2.1294691388894504,6.354832112063957,Biden,Democrat,Democrats,Democrats14
+2023,1,0.68966,False,3.5,5.74983,-5.86733,4.497551600000005,64.6,4.51,1.762198687436345,0.33950357868084424,Biden,Democrat,Republicans,Democrats
+2023,2,0.60514,False,3.5,4.03157,5.59716,9.818358372800029,62.3,4.99,1.762198687436345,0.33950357868084424,Biden,Democrat,Republicans,Democrats
+2023,3,1.06582,False,3.7,3.56176,4.64228,-4.921508799999996,69.6,5.26,1.762198687436345,0.33950357868084424,Biden,Democrat,Republicans,Democrats
+2023,4,0.78558,False,3.8,3.23615,-10.05236,13.219811947999993,64.9,5.33,1.762198687436345,0.33950357868084424,Biden,Democrat,Republicans,Democrats
+2024,1,0.40399,False,3.8,3.24919,-3.21356,6.530820624000011,78.4,5.33,1.6883853776791247,1.9864467383535755,Biden,Democrat,Republicans,Democrats
+2024,2,0.73626,False,4.0,3.19431,8.94288,8.686055148000005,71.5,5.33,1.6883853776791247,1.9864467383535755,Biden,Democrat,Republicans,Democrats
+2024,3,0.75664,False,4.2,2.64001,-5.55704,4.927909904000027,68.1,5.26,1.6883853776791247,1.9864467383535755,Biden,Democrat,Republicans,Democrats
+2024,4,0.55662,False,4.1,2.73538,-8.6311,4.400000000000004,72.1,4.65,1.6883853776791247,1.9864467383535755,Biden,Democrat,Republicans,Democrats
diff --git a/SidLamsal-MiniProject/MiniProjectCode/final_election_results.csv b/SidLamsal-MiniProject/MiniProjectCode/final_election_results.csv
new file mode 100644
index 0000000..02cc561
--- /dev/null
+++ b/SidLamsal-MiniProject/MiniProjectCode/final_election_results.csv
@@ -0,0 +1,19 @@
+Year,Quarter,GDP_Growth,Recession,Unemployment_Rate,Inflation_Rate,Gas_Prices,SP500_Return_Rate,Consumer_Confidence,Federal_Funds_Rate,Debt_Percent_Change,Egg_Price,President,President_Party,House_Majority,Senate_Majority,President_Party_Stayed,Turnout_as_%_VAP,Approval
+1956,4,1.63251,False,4.1,2.58161,-0.85837,-0.7930719713999945,100.2,2.93,-0.14824858741575575,-0.13833815487817036,Eisenhower,Republican,Democrats,Democrats,True,60.4,75
+1960,4,-1.29143,True,6.3,1.39598,-0.26954,12.0986857718,90.1,2.3,0.14237391918818787,1.8199508596207448,Eisenhower,Republican,Democrats,Democrats,False,63.5,59
+1964,4,0.30871,False,5.0,1.2661,,2.2400890307999966,99.9,3.58,0.4750319279826387,-0.2464791333472438,Kennedy / L. Johnson,Democrat,Democrats,Democrats,True,63.4,70
+1968,4,0.392,False,3.4,4.62598,0.12384,-1.0107223309000157,91.7,5.92,1.5980187639324406,1.822211820763675,L. Johnson,Democrat,Democrats,Democrats,False,62.8,43
+1972,4,1.66057,False,5.4,3.33333,1.50032,8.747319622499994,90.7,5.15,1.7810718026042283,-0.14705343769813028,Nixon,Republican,Democrats,Democrats,True,57.0,62
+1976,4,0.72001,False,7.8,5.18697,0.13899,2.847584724200014,87.0,4.87,3.861221757300859,2.133010270590052,Ford,Republican,Democrats,Democrats,False,55.7,53
+1980,4,1.84775,False,7.4,12.53836,-0.98023,3.3231672836000037,72.1,15.85,2.369950451411973,-0.44401215883757006,Carter,Democrat,Democrats,Democrats,False,55.1,31
+1984,4,0.81742,False,7.3,4.1543,0.17144,5.297670526999987,95.0,9.26,3.3668933376672205,2.663222940973231,Reagan,Republican,Democrats,Republicans,True,54.5,62
+1988,4,1.32366,False,5.3,4.30636,-2.55644,3.782162983400017,93.0,8.47,2.579636611821523,0.5464032276249364,Reagan,Republican,Democrats,Democrats,True,51.4,57
+1992,4,1.03746,False,7.4,3.12197,-0.88482,6.268820352800009,83.2,3.03,2.618939916512897,-2.940821366088542,G.H.W. Bush,Republican,Democrats,Democrats,False,56.3,43
+1996,4,1.03302,False,5.3,3.2314,-0.12484,9.77632556000001,97.5,5.28,1.2375375416489698,3.8985474304277012,Clinton,Democrat,Republicans,Republicans,True,49.8,58
+2000,4,0.59526,False,3.9,3.4435,-1.49578,-3.623132405600016,103.9,6.47,0.07905423837051284,0.7115432973961111,Clinton,Democrat,Republicans,Republicans,False,52.1,63
+2004,4,1.01504,False,5.4,3.38495,3.51622,6.177213016500027,93.9,1.95,2.1271000770169524,1.4703266967765805,G.W. Bush,Republican,Republicans,Republicans,True,56.7,53
+2008,4,-2.21334,True,6.9,1.5958,-49.85553,-9.931636484999995,57.7,0.51,2.7105842080476394,3.133851324847936,G.W. Bush,Republican,Democrats,Democrats13,False,58.3,29
+2012,4,0.11557,False,7.8,1.90357,-3.84963,3.517262357600015,79.4,0.16,2.0901942689896202,0.7685754995754523,Obama,Democrat,Republicans,Democrats,True,54.9,53
+2016,4,0.55277,False,4.8,1.80698,1.2642,6.712242560000026,93.1,0.45,1.904641083676295,-6.519272734762849,Obama,Democrat,Republicans,Republicans,False,55.7,56
+2020,4,1.07888,False,6.8,1.22598,-1.78467,11.41286156000001,79.8,0.09,4.357075617848727,1.0258995871004206,Trump,Republican,Democrats,Republicans,False,62.8,43
+2024,4,0.55662,False,4.1,2.73538,-8.6311,4.400000000000004,72.1,4.65,1.6883853776791247,1.9864467383535755,Biden,Democrat,Republicans,Democrats,False,58.1,37
From 1df8d8fd57205b353a2c88e72bc5c193bdef63d6 Mon Sep 17 00:00:00 2001
From: sidlamsal <98344853+sidlamsal@users.noreply.github.com>
Date: Thu, 13 Feb 2025 21:50:22 -0500
Subject: [PATCH 7/9] visualizations done
---
.DS_Store | Bin 0 -> 6148 bytes
SidLamsal-MiniProject/.DS_Store | Bin 0 -> 6148 bytes
.../MiniProjectCode/DemLogo.png | Bin 0 -> 95797 bytes
.../MiniProjectCode/MiniProjectNotebook.ipynb | 675 +++++++++++++++++-
.../MiniProjectCode/RepLogo.png | Bin 0 -> 151764 bytes
5 files changed, 646 insertions(+), 29 deletions(-)
create mode 100644 .DS_Store
create mode 100644 SidLamsal-MiniProject/.DS_Store
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/DemLogo.png
create mode 100644 SidLamsal-MiniProject/MiniProjectCode/RepLogo.png
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..b31c0c291804bfa601b7aa30e4cc7b1bfbe409f4
GIT binary patch
literal 6148
zcmeHKyH3ME5S%3`BGIIYM0r0z!5^HW(1C=M9{}PML=Kh+^se}>d|GB7jb&&erHOW>
z-ML%u_;gcvy#QqS(>wrk05iHGel?6upR14TCNe^#^Br&4dK&GqpYRM}_ZyjAudu^e=
v(zWJDSL50!4Azc`){eQ+c6?_=URQL@=QXf*G&=J}C+5$9>XMcUTv~w>0Nfco
literal 0
HcmV?d00001
diff --git a/SidLamsal-MiniProject/.DS_Store b/SidLamsal-MiniProject/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..162ea685c8a0d0395ee4681c29b14769f4e73f65
GIT binary patch
literal 6148
zcmeHKyG{c!5S)b+ktmXq(!anToI+9}A@KuSSNc!>
zJ8pSak6nM*?w^KX@2N5=AO)m=6p#W^;6w$gpw6#OJV$gXAO+4(0slTUx?@*3CdQ|O
zL$mFQ#{1)l3
zE>WWtkOIdFT;_7=^?yVEqyIl9X(a`uz*#9^v-QJz#V1v5ojlHKZKFTZJ?D$=#(7XU
mL^&o#Ip)I4@pU9+Uh_HkyTUOs=!^%QsGkAXMJ5IQTY+z`lov7p
literal 0
HcmV?d00001
diff --git a/SidLamsal-MiniProject/MiniProjectCode/DemLogo.png b/SidLamsal-MiniProject/MiniProjectCode/DemLogo.png
new file mode 100644
index 0000000000000000000000000000000000000000..6ea8a37f564a092aa8466a89ee768659a3d5129b
GIT binary patch
literal 95797
zcmV+CKp4M?P)1y
znPicfnG!=1JIrm`6w)MRZjv@_6Q6HpC8cfJ{2P#Nldsp$GtZT-C&Y#ii(Odk1SXqvshMEhVSEBNe2H-MMVV}d3kvmISOSZC2{}4MTP~o5qq1R2eOl*kQo<-#E1aI
z1bHJi#0O!19`BlOG)quaQhG>5RYgXXLPbKM%7c^!s}wjXa1sqxp!o{^P)ydW3W^By
z{&g0?R-77zqU3NSh58`e*A0;Yo(S=E`{m{hrfEFj)oI{JGL-1~$;(NBlL9A6;OGOJ
zk5E*kP*PHHwB2<+F)|2Qu_0(HPD6KT1}f5{5fezTdAlHjpbPSL`K7+DjwKJM`BdCb
z2M-!9;7Ea!0w=*LrTRRChOliG+cxJ$hx)yr819eC%orT&t-{gnN(|TLp)fg&6wV#N
zUe1UK_JOnQu9J!iijSy}GD%ZDbGU)m0RrMu=`qabTCpQ{js;905`|m
zadm$iPW0B2+NB~X!UqvE){>O&Lqh{SGgTT;>hyt1D%5DON`aFC_l+)^$jQmcEHl)%
zi3;}qLvmyQ*~vhRwU^=Xi7s3_*p3TB&Dh^mjPxjfMEJW2m1ApZwsv&_PZKOvP>^6O
z6}D2D)J_VV6u5a0Jw2T{4{dENnQi9lv$7MykWA`UogIU7!;QEx(TVG0odUXJz1677
zj7F%B69POO1#r%GR+n|Ov=;N=($eXtS@8pu-M
zq`=L4XlrWBd8n(YKI*vJ@=#V>2(sgY(N~#?i~C#g^w|;InC!%rgRMByQz`PgthfM#
z`8gwyR4%~N`GbvSYaR202
z4b&I2}<+Ya*M@F0_HXwU%q`YN2dx;p2Yi`E#g^xj}+x=6mE`lA|4zomm6)54)pwOdUPNP6GJi4UXJUN
zJ-9U1LAMNCJ1&p55Qs%+$c;x#pc_KHoy5GHw~PJTx;omLJivH*K@y=kbNh7!PDx3T
z?e3%NP1giD+gqIq@%Q+tuZQywA_9H>M7M9RHeO+;sjfCJPUSO$K4&Ebslt7!Ff~~<
zr?GbRN*U`NTjIDnnGouYytp7tb(G`A;a;3S)Q=HRqJ(O5bUi6tcoa_v6oG(c*c#e?lx$4$UW~K4re(xto2O-$c
z9lq{PaJAnJR|gwx-e7i6Nl|GDg^Z+Q34KOV;J#oiGtisUFwoPHF+Cr5)qqCx6Gz{%QLSqu|we~b(DMKHZL9!|FKbhd-NwI%GVc3}5T
zi(l#K>TFpeFE7yxlstFn$jM8A`|ks%En~TLV_kHR=if470?<{SA>g`3R`T}AA>2JN
zhFjQx{^yefv$yZYP)|QQCrEwwNqJ8Vso;uu|>cP{bY>yr3Cu`Yf>hrTw<6n4T=C9B?Wup_z<2rHH?d+9k?>qMHaIQCrJ5D4>jUA
z-SV_SQBoL!-0kTqZbNyTD=f@6wD4Th61v*YSFnNGBVVcF(k`8
zpJAY{E2E>WwaDIj`&d?DI1&s*i6<}RhceU6yRxhxGaU!*E)yK~#wq;Nkp7bfE>LH6vq19(DOa6@<#Z%k=1rWgue^oL%fie
z7>0_>I07yPnPfNp$PqZ%?tEZlwf!wMHC1gzCB=DLZuMCq1?~&Ra_+R4qu`>+ie-ih
z?haPhq60lql^KKAuZ-j6D`U8Gd=Pg@=}rwb;oNXDt{>{cC4%qniD8`RuSaV^GE(RY
z9_T^2ijxi5CpVa`F%D&`Iv@6pa~_fOFI@B=f#VSQM
z86D(?v}k`6r9_}EKN&T-NvNX8j0=I6({2K8*Ml9~Hr=DwA}25DN+tb0DR5u7(`4=v
zX}(fxYisHSc{#n79N~w!AP?L<(uX&1A0vf3jN8Wsac*x5Cc7#z*;#?h2RrcOslB){
z(TlFqbi~u|2atX8BH*}4ux-=&HVt*Phqbwxd5(ii+5)Q20UX;(Ru5Li`B-@_-aA#5
zZ+STGemp6{AAGS2^KnMFpObhGbK^r$MGk<0t1nDNT|o-6;({sPwSnVqOKja_c9$*)
z3q{pcQF6f-2`O-2Feqo3v*3P2QaH<~0QWy6h5I5d&_h%yU%YS-&z&E|t)m0DNRS=r
z<+iS3Ja)JrPn;aVsli72z642Rn|xhuMETpt)&65Q``s_;>*;7{X=sRfvbhKyElu$}
z7cZ9m0>CX2gMzDab8gG%F?sOP`(_;#==othsavGK8^Zma5ku;h6%!-?>#WK}M`aG$
z%Ck_Nn~03qAOW21E{l&gn3^1?!M{ipuM{K{Get6K(c}xpTv{VhVbj*y6z1#tNA5By
zqXeIo?4?Vic=g&Oo;tY~$M-Z~puPYTq;dkdQzJOPzYU|UC8*DdN2r%0+#Pnq)!v$?
z2Y#ogt7FBR5s57uzGCnI=gQ|Jk1qK8hxR#vlbzY+OJR`hu)zeK
z6u2*HDcRD@QE=ikhH&TD9z1_x6fa$!z_sxn>~AT>WOp@A
zkF?^kBYSZ9P$x#)$}m)$hm1&n_>--)x7yAs_mS21Eqir!v_%E)tB0Pjl8-J}_=SM`
z$LWE&4LP!8vNGlyO$!srg2x1VQSRm{)GZ;{6Zr|DsHJ?ZzqSCQbb;!x&qrHXhOm|i
z5x#J--$@rHD_*$Ur9c-YNf%6{zGC*U
zxHyWNQ~fx*uN^0bTCk6RJJe1&+@WsVB$c~xpdC{*picDHp&>T`Vct#xIByp_&QYG?
zF8R5dP-c*(Vfy00@dafr^EiGyLw#K{ve2)lMg@x8EyTwWVU)Y2Mf##DD;}L>ArEy{
zVVrDu4_%OYYx4zgQKW>ViXzC4X35Dfm1zFP-8oC-q`j11IOa0>=c37~6-Mr%elCB@
ziVsF>X&P=H8^X759ud~@_)rr@J1TIny%GmoOL1&ZJ^(d0YcQSAo8YEW`$R
zkgc?WgY^!$*jfF8@;FmvvN2z_SBDD@5hPZ
zq;T}Qc?y8%+e*`-=>5yU!H!BCAsfz?a`h
zM=$}$3g>LQi}ScvGZSN(4eM5aq1b4;MrN(?O3}K-rTtmhzASLuSUgvASPZ}A)=gb0
zWF>jdjVqI(zD`I9_eOngqOg&Z{q+P}CH9fJ?Wr$B2ieQkk_=?W2E)b1k}H(hv31jn
zl)uUIhPHF5zMm(gz&_x^v}KqKkExE}f%-$^YW6U30qshG?Eu^mViSc6tmeTrk>8
zQgG!!E8e(y823)^CF|IWYh#@_+FOn4tQgV$wU_caZu#Qg$`h2w4OQnLE7A|%&bwi~
zeG6Rdc4335Nj6Use^Hyu*6kl5`l<@Y^KoCP&_Iu2w$?Z`DIx&jer}?(CcwiE;ogp9
zrNhu$m4hQ>vCkds!tvo24AI4?gYvdvg783lCAzEgke?hOR>za&eoseR(?!x-#B(qt
zQsDl}^Kd-CH8j*Uy_|NxkreKO_+U>|W<=uR{uX@a<`iD$c{ozHWBt`Q*jkLP@-!4C
zh2kLPbw_(^ae1@@hr2379#@(YfiNE@VVibr*@(^S*B;Z-&{+I=_ubIZ(h|jqPfuWf
zRp5AFd|4aDMHekija8&>Z}UokU{5Ep3LunV<5llG@jua3g-eIJae2HK``arBwk%Pd
zJUq~d$-X-D))t^LJ6=p7IN9v{Gri{<#UfdWp0BrLj`Fwv$tvYscD-{6UQNkim&J{6
zUzfk}U@A-urW~zS^izKOu_Jiq+yT+r)k(0GrAMGHFAgKk#W*?Gh_fTjI6Y8@F|wPy
zC^gu_0q*uz1lu}Rx?gH*Y3fd|9{A6}mC5NX02a?VaJC3?#ey8bw`_NAJC?w0
zZ)7LAUy}1S?jbFR55Yi9K28kMd$6w^XUR@-{>D|w{`vy!=joKrO3LT*kP{yYe>Vqg
z-DvhSLHsDUsYw(#`g>B~zU%_jIZdR++|svPZFk;Ejr4!OtCK4;V=+#H<$Je}+55<^gt5rv_Kd|aig`nkQWVu$9*_EL10rXw!E9bRNBcW&DR8mJ$w
zTy7M=z}yI6BaP(T+;Al%!G4mMYr0_B0fUxj62njPiHq_k$LX);1I*hl_r{%B*-Xx&8dbL-^6XbE1LyV0)RE5-3d#M^SQ^
zm>Re?KD{=M*Uz0MMI0m5<2=sS)m99y-IiNnxpmVN7er{F$#4PXv%+}AG6CG9pMW*D
zzB4IVxhOK(Q$s4(Bw(w`juX|%13dXn
zmU3@vIcjnf#Tq%gT^4^fGSCa-oxK=lNe1_nN`d>b&C7g+oWo$HGhVqYCON|QL3w5j
z*~VzHi%oczfcwFdr}5g&!#LbmgVMAJ5CB3oI4iqt6h
zx!Sd
zA}xK?@jZ>WxW5hOhU&48Y-VFlJR*Eu#O68MHm}Dn
zi_ITxG&KoYx5ik;)MWL)gc$|z+WhwqZ+?K|0W$r1KhHS}iZXh-+J^q_4nO3zZd{r4
zceO)+n;l~OT#ywNfQGzeF%@v0E;y$~T126wyE>a}WFf}7YjAA1Swt`8csz~39VVOB
zuYHPFobo&)7h@zDJdY>^?n}m8?-Rn7l5)96U2QF&%ufzQIpt`>jfHse(l~zo+GBX@
z{&}3)*NT?n6cm%~EFnu-n-zol+yt_jsbYHI%wRnx+Dp(|mL{rqel$RB$Wn5(a{anB
zHQdJZSqmcn8J770jt85<=Tv-FIO7#YUaV}KyYVV*wuF%c8^5-a1#ooHIl^ZQNOn3vaSm5{|BnJU_e)OX
z8N6>{lo+~cbweffhT~g!ca{%%2Ol6WAI{2
ztL#-==<=MXA`^R*qBqI|#Tg43G-O6SVYryu$l2
zWo0FGN$+7YdrX!TxUWesI=|L;Bo$T{!kB2kh<}1UA%(A-g^5-WUH?!Dk(0Nba#mW
zZf4?N3fz|kj(4M)<4{;CnwWP)`MZ6T5aI=n!jy14PkG!Ao;oX5d0!px#(~ySRA)w^
zC?QDnR2C(L<3L*l4)@jJ%upi+tFzEknnnZEU8sW{PY>+a!kY_?^YWHY@~D}`kP-uK
zCXW;Ij{nAXEfEKiD992VPsE4%B09($-cB~~u-kP3@sQ*kQl^OMj=Fdi9b60xVg2#H}npY)az$YuYuYF$FX7d0txUwP+c`8f~XIzT~T
zsl12%t{ncrw14~yItFVq^YiMs5rBA9Zy8_K=?E`{5{1(Gco%iJ+$yM
zfuo;&PT&^KG%|nIw1kQAig;GGFh4i3a@~ty;r&`t!+lYgn?QhJf+TV92j_A}
z_{u-ti{q5XO%QY~d5H+|p9z4zQFTsKCbqnvPf!=te5~)WJIH@G7AUVE5zK|>Ah_@$UT$gndq&~#!y3{u#^J?
z|
z!il#dGGl@;-dQc?nz%~&y}PIJ?4=3x)#j0v3>DCglAUZTO&6=e&y2K+>4CxWbX1c%
za$ltnsoZv+k0a>To2;(k{!MP<5)<9C8~w=1KQdE1d1&?&8aa7+MfyvEAB}}cXr&lwF2N{Wm^g1cv%d>d
zy$vWxjuc0E@q%3A70a5I$Vq;6_jKiTspzAW0{1nW7Lc3SuR}#ySu4=P?#Eg2fe0Zx
z#fvA84>scRSU0Xs^@}Aa1C7O~%#21^YB&aJaxp-;%bwZ-y3!Yk6$JZ90cZ0#E;_i{
z?!;y@6Rcmm`lzn9<|k)!i`;A)f`#<=l^8Vo5Fe)Rm(o9N8YGJJJ%J~up`f6+g$B_o
zx-hIzQBjGcueU2KRoF;*;VSywbp)Lj4J=kXWm4)#SP^Fd{&XHEiZ-%KW)`|G;?0!&
zg1wyo5aI7G4%^^`q6}Pwj|(a@Vlhas>+qg>T%h-W3nioN<#d6`#ZXfb_O=v@6#)}{
z4V2$CVv=C1%1#hnDNfdw53F`<`H8x^s@aTEODs4~6%|oFv{DM(R|Ia}4i%IW`O#*x
zH9biY-bjh?rCcsSv~@jxbP$gn8xjMKtyEJ%BFfXF$abcpvn&G#+seiIuc_{8Opx8`
zugFApOdwqBcEXL<#;siq%8{;fS)Qw+|FnN3?>nNTWI(q%G*EcAFC7I%MI#zG>I9Yv
z;EYgw5di4IaUzUm*O!FiCc
z{B`-LBNg-@h4XN*f|bSQ2c&SXYint)nmH7Z^R7n-vPHaFffb4FcO}>?>DHRST22sJ
z5=^FQYN|;Z8tU!pYO0O&bt_rYgIXFI$2HW|2Q<~y`Utux8c^mGtLgtQTe?(X89m2p>Z%1N?m*|Z=&`}{eNqG0N
z-s&6yQ&Vx8*l&_Id*$7gdE$F&&$Pk~)7QMsInO~l+E{+La=B6FKNN!`7Sn~2rBX{d
zC#_vemdsmBD}cPbhr_NnVglWe8s#tcFM0Xe6n=33JYKqS6n9SUBQ+~V6+Dl^O#lEO
z07*naQ~_0z5{}a3P&DSoi!OQI0ClRf3d1!y=qOA^C|j%DJK#uz*nGn}tXyW8%10(~
zb1*}}c^E;(`53o6nW?F%)zQyW2{tEHRh2-3Y`La}Mw70N_EkL{t(!Vpns@YcwD0R`
zYu(n-)_Ric=`cZ9M1cCTXvamel4JCm%G07znjS57q2}dDoV)GssKh9#9s@VoTaV_V
zG|K&4M6>d4%dKzGYtvsS@x`XHVwy*OsT8<5iA7>D;rs>VRS$35WV$CM(hq?&_?nAS
z@$C77_z?m3?h9A()Y*eLv$qwE`H83^b>m!)7oRp2B%!S=69-$$Fxgg$zA~O3@Pf0A
zrI;QtU%!@5*O}sGW%=oI-WJlp&}J1QNS4wq382QPhPqlSL6=VO6%$O`=)M8UvwmZ!
zr}JZi?S*CfdVes`)A^acuJ$_w%|!~HRCc04wVA+6pn;&ZVBxft{8!+nZ6zm();rA4
z2YWlipU-TwvY=dZ2ZHJKCWd;6^=xbtPw#K1{Iv)DHF;v+$!1bL(WqRNg~7%`vB;EH
z2Amvj!J&?76emZLCAEUP3?yLMESwKB*wOTZtXJ{)cE7>S0C~j6zR9H{eu~ko3`#wR}
zrm3lMl7P!0C3|X_q5gYD`g*@6(0;YTQ2(!V`ym1M6MY@67xi^@?hvfIDX+^>RZ)pv
zN>*y7n`QA#)lz&v1KdLk=tJMM-lUC-B;1(HMIA3E>*;>UAWxK}Mhd9LNU=`u>kt>0
zrh*i)Y>BrmZ=~1QL-ulza#mp{`|8C;xefU#0$2}6K4Zb=&xZPXzI*|j&jTty>(EL?
zDR5u^D&;@!pT9(I$wPKKw>%ji;)$GuP=Y8Qj~yAneahjUA@H82oNkP+?iESF$O`j7
zT}~X?$~d$ZrI6h!A(bn~5ao2d=Lc8pcu@1A)Lj;vp|7VCOmFzQe+(7TI2D&;Qlj8l6
z;w=L1Spu_OLqlVf9>-o``l6vpIgB!?*|)@;l)U^Sbe}AL;2P?xD+#pU`ncGN3xOx)
zn7oEBF3?@%Ukn>>;yT)0D}dWe_L-*#iV4J)(sWd0#Zm5-E!Mqp@8qG*YWkg0WJd8}
z9oFK2N*l|q_h^tW<-tB%5tUdhk(B~Br$rM9te;xQtDV=b>WSp-1fqSBpA?Ftd+J0k
z_rm1~JbmtfSb$o`g_CF>WJh?Rkt}6PVG26RvoYRLg#l85(xfoTiKh3fWNW!;{o22*
zS+$~DQBg^Q)JrlNv^3FU%D3W|z)vsF48dp55Uc4
zCi??;j?mRk6m%$GCFpjEqq_3w;?l}z15jSZeUlwzk$Gx>VXGwzU7MGPdQ!Xoh9V4;
zb>;=8`&%o}S)L;fV`OzBkpE(4Vq7lisetJgH7Rg&9{<>1IA6iXLn$jMnYcUbd^aw{
z1DUZw*i)B>+s6m-vlp)5jmMAU+E_P68VXSm7l=$!xx6Spu>)~iNjfIGs&TZZ8ui(H
zoRt%HZ#Ngy1H3+Nqv_fgC_gi&e9M|ZSjq~duBKW-`PnT}tTzav4-E8me@A)Shh)o0
z$#h{fb4x$N3JQYlZ)7c5<$gq9{+tx?gsO^im7HkNN+WvvT;5kC)-4-GO-RuxccCsKPLac4$&432#^3g)}k$0o!vjN&GvqXiG&wA^w
z$;ZL28XOyJ7M&$!=`rvod&>QzRu-FY5&U`#z|y7i5{&7?PZrBcf%`@kO=jcKM;FSh
zU%RT2flH0@MRRc~#yTr->*yZ5``l&RK01iQ-BqZ|j6q(sKe7qBvczDqwfA1KTPOC^
zW2iP)tes=q=0*dYixb<;H~gFwZ9NxBR8&+FXi%&rC^nLUy+}a(Zn>fU?+Lh%2)Mr(
z8t8w-%0_k)WFr|okiuc5kv>)uaCF~$^z#q2G&Sz1tEugyJk4bKTsTE_0(vdo$}OGQ
zlablpy?yid`Op!rnz~VL>9A`Hyy$yAwUn)5OKAqidTL3z%IS5a5pb!<=S8;}F{mv_
zMmyO}Ui)^4a@4a2Iz{x=6o}Oku68>gINR?08L6$K=wqCB>;KO&yU$rgKgz1Lwy(<83^#$V$ywoC1@K7v|v&-bGp@;Z5@+cGTkt&
zqowIV>h|959h+fmxdpqnY{0Iq8{p$)jg063v9lIi$thCh!+o`AqFj{oHvU;^gfGhI
zB2rEOmS@FdpO~NP#AIIsIx2FI7U?h6{`t~HWy8AF?TbIP?oU!N3z-zSZ(Nn~@4?n+
z!#d;M01sPnV0=1ROFp`a=bdRBnP{rDkGYp<37tmv=^l!
zofO2GC%{SNc5U1A;mT!(B^v5#Ml=xA36@g&x?5dct<%sz?=6Dp0p)I_Xww#w;G4FS
z)43d0le(=m)Wa&Wl|}+a-QTFHs&)}<9^8jX1L0euKT~eHF_~V6`j+);ze~Vj>xOj{
zYw0;`6onE$m)*#Y3l?W`a|;(+Ns+tJbLQMFi*nb(lt|PUrHQ<4u(?buGG*8X8j3`r
zg{KsF?rqD4btid#PgcT}$t4_e(_5!Yf%^tq%4u6EE2E{UzRkzU>VqIpd$B&Or!o`!
znt8{nPCRjHzu2F0igLTAoLCgZ_#>5azF2=Z)aNCml?Lj*hGLYHS_nJ0Ya8WF79Vdk
zUGtoZvWlUSvhpHzb=3w9b=6_Ag{KI#zZvT5fPvE^$P5@Z3O$`^JIRV>OrWir&fyqB
zQbE0UxWdW3moyL_T1tSaC@U?X{BQvc#E0qUy_TeCTQ-