Skip to content

Commit

Permalink
update recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodi Yang committed Apr 11, 2024
1 parent b3e4e66 commit 187af61
Showing 1 changed file with 10 additions and 200 deletions.
210 changes: 10 additions & 200 deletions docs/recipes/recipe2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 68,
"id": "c6e7dd74",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -52,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 70,
"id": "ec3784a3",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -103,7 +103,7 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": 72,
"id": "0872e06c",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -143,7 +143,7 @@
},
{
"cell_type": "code",
"execution_count": 46,
"execution_count": 74,
"id": "83baa2ab",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -185,7 +185,7 @@
},
{
"cell_type": "code",
"execution_count": 47,
"execution_count": 75,
"id": "8588fe23",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -251,7 +251,7 @@
" reform_list.append(itax_rev1)\n",
" br_diff = itax_rev1 - itax_rev0\n",
" base_ref_diff.append(br_diff)\n",
" reform_sum += itax_rev0\n",
" reform_sum += itax_rev1\n",
" base_ref_sum += br_diff\n",
" \n",
" \n",
Expand Down Expand Up @@ -280,7 +280,7 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": null,
"id": "a338081b",
"metadata": {},
"outputs": [],
Expand All @@ -293,7 +293,7 @@
},
{
"cell_type": "code",
"execution_count": 60,
"execution_count": null,
"id": "adbcfde6",
"metadata": {},
"outputs": [],
Expand All @@ -303,200 +303,10 @@
},
{
"cell_type": "code",
"execution_count": 67,
"execution_count": null,
"id": "074fa563",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Year</th>\n",
" <th>Baseline Tototal Revenue</th>\n",
" <th>Reform Tototal Revenue (no offset)</th>\n",
" <th>Reform Tototal Revenue with offset</th>\n",
" <th>Diff: Reform - Baseline</th>\n",
" <th>Diff: Offset - Reform</th>\n",
" <th>Diff: Offset - Baseline</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>2024</td>\n",
" <td>3757.61</td>\n",
" <td>3757.61</td>\n",
" <td>3757.61</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>2025</td>\n",
" <td>3952.99</td>\n",
" <td>4053.78</td>\n",
" <td>4023.51</td>\n",
" <td>100.79</td>\n",
" <td>-30.27</td>\n",
" <td>70.52</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2026</td>\n",
" <td>4353.22</td>\n",
" <td>4458.41</td>\n",
" <td>4423.90</td>\n",
" <td>105.19</td>\n",
" <td>-34.51</td>\n",
" <td>70.68</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>2027</td>\n",
" <td>4543.83</td>\n",
" <td>4653.24</td>\n",
" <td>4617.23</td>\n",
" <td>109.41</td>\n",
" <td>-36.01</td>\n",
" <td>73.40</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>2028</td>\n",
" <td>4737.26</td>\n",
" <td>4850.96</td>\n",
" <td>4813.43</td>\n",
" <td>113.70</td>\n",
" <td>-37.53</td>\n",
" <td>76.17</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>2029</td>\n",
" <td>4935.73</td>\n",
" <td>5053.90</td>\n",
" <td>5014.79</td>\n",
" <td>118.17</td>\n",
" <td>-39.11</td>\n",
" <td>79.06</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>2030</td>\n",
" <td>5139.73</td>\n",
" <td>5262.54</td>\n",
" <td>5221.78</td>\n",
" <td>122.81</td>\n",
" <td>-40.76</td>\n",
" <td>82.05</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>2031</td>\n",
" <td>5348.20</td>\n",
" <td>5475.84</td>\n",
" <td>5433.37</td>\n",
" <td>127.64</td>\n",
" <td>-42.47</td>\n",
" <td>85.17</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>2032</td>\n",
" <td>5549.99</td>\n",
" <td>5682.67</td>\n",
" <td>5638.45</td>\n",
" <td>132.68</td>\n",
" <td>-44.22</td>\n",
" <td>88.46</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>2033</td>\n",
" <td>5781.67</td>\n",
" <td>5918.52</td>\n",
" <td>5872.84</td>\n",
" <td>136.85</td>\n",
" <td>-45.68</td>\n",
" <td>91.17</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>10 year 2024-2033</td>\n",
" <td>48100.23</td>\n",
" <td>48100.23</td>\n",
" <td>48816.91</td>\n",
" <td>1067.24</td>\n",
" <td>-350.56</td>\n",
" <td>716.68</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Year Baseline Tototal Revenue \\\n",
"0 2024 3757.61 \n",
"1 2025 3952.99 \n",
"2 2026 4353.22 \n",
"3 2027 4543.83 \n",
"4 2028 4737.26 \n",
"5 2029 4935.73 \n",
"6 2030 5139.73 \n",
"7 2031 5348.20 \n",
"8 2032 5549.99 \n",
"9 2033 5781.67 \n",
"10 10 year 2024-2033 48100.23 \n",
"\n",
" Reform Tototal Revenue (no offset) Reform Tototal Revenue with offset \\\n",
"0 3757.61 3757.61 \n",
"1 4053.78 4023.51 \n",
"2 4458.41 4423.90 \n",
"3 4653.24 4617.23 \n",
"4 4850.96 4813.43 \n",
"5 5053.90 5014.79 \n",
"6 5262.54 5221.78 \n",
"7 5475.84 5433.37 \n",
"8 5682.67 5638.45 \n",
"9 5918.52 5872.84 \n",
"10 48100.23 48816.91 \n",
"\n",
" Diff: Reform - Baseline Diff: Offset - Reform Diff: Offset - Baseline \n",
"0 0.00 0.00 0.00 \n",
"1 100.79 -30.27 70.52 \n",
"2 105.19 -34.51 70.68 \n",
"3 109.41 -36.01 73.40 \n",
"4 113.70 -37.53 76.17 \n",
"5 118.17 -39.11 79.06 \n",
"6 122.81 -40.76 82.05 \n",
"7 127.64 -42.47 85.17 \n",
"8 132.68 -44.22 88.46 \n",
"9 136.85 -45.68 91.17 \n",
"10 1067.24 -350.56 716.68 "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"display(df)"
]
Expand Down

0 comments on commit 187af61

Please sign in to comment.