aboutsummaryrefslogtreecommitdiffstats
path: root/python/notebooks/Interest Statement.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'python/notebooks/Interest Statement.ipynb')
-rw-r--r--python/notebooks/Interest Statement.ipynb109
1 files changed, 9 insertions, 100 deletions
diff --git a/python/notebooks/Interest Statement.ipynb b/python/notebooks/Interest Statement.ipynb
index 69518dff..1db3978a 100644
--- a/python/notebooks/Interest Statement.ipynb
+++ b/python/notebooks/Interest Statement.ipynb
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 21,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -23,7 +23,7 @@
},
{
"cell_type": "code",
- "execution_count": 22,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -60,24 +60,9 @@
},
{
"cell_type": "code",
- "execution_count": 24,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "a0d5bf2d610b480f918704e73e02309a",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "VBox(children=(HBox(children=(Dropdown(description='Broker:', index=3, options=('BAML_FCM', 'BAML_ISDA', 'BNP'…"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"from ipywidgets import widgets, Layout\n",
"import datetime\n",
@@ -113,43 +98,9 @@
},
{
"cell_type": "code",
- "execution_count": 23,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/plain": [
- "date\n",
- "2019-12-02 -8,800,000.00\n",
- "2019-12-03 -8,800,000.00\n",
- "2019-12-04 -8,800,000.00\n",
- "2019-12-05 -8,800,000.00\n",
- "2019-12-06 -8,800,000.00\n",
- "2019-12-09 -8,800,000.00\n",
- "2019-12-10 -8,800,000.00\n",
- "2019-12-11 -9,070,000.00\n",
- "2019-12-12 -9,070,000.00\n",
- "2019-12-13 -9,070,000.00\n",
- "2019-12-16 -9,070,000.00\n",
- "2019-12-17 -9,070,000.00\n",
- "2019-12-18 -9,070,000.00\n",
- "2019-12-19 -9,070,000.00\n",
- "2019-12-20 -9,070,000.00\n",
- "2019-12-23 -9,070,000.00\n",
- "2019-12-26 -9,070,000.00\n",
- "2019-12-27 -9,070,000.00\n",
- "2019-12-30 -9,070,000.00\n",
- "2020-01-01 -9,070,000.00\n",
- "2020-01-02 -9,070,000.00\n",
- "2020-01-03 -9,070,000.00\n",
- "Name: amount, dtype: float64"
- ]
- },
- "execution_count": 23,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"df_gs=df_balances[df_balances.broker == \"MS\"]\n",
"df_gs.groupby(df_gs.index)['amount'].sum()[\"2019-12-01\":]"
@@ -157,7 +108,7 @@
},
{
"cell_type": "code",
- "execution_count": 11,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -186,51 +137,9 @@
},
{
"cell_type": "code",
- "execution_count": 12,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/plain": [
- "2019-12-01 -1,217.99\n",
- "2019-12-02 -1,217.99\n",
- "2019-12-03 -1,210.18\n",
- "2019-12-04 -1,210.18\n",
- "2019-12-05 -1,210.18\n",
- "2019-12-06 -1,440.10\n",
- "2019-12-07 -1,440.10\n",
- "2019-12-08 -1,440.10\n",
- "2019-12-09 -1,440.10\n",
- "2019-12-10 -1,440.10\n",
- "2019-12-11 -1,440.10\n",
- "2019-12-12 -1,474.54\n",
- "2019-12-13 -1,474.54\n",
- "2019-12-14 -1,474.54\n",
- "2019-12-15 -1,474.54\n",
- "2019-12-16 -1,484.06\n",
- "2019-12-17 -1,484.06\n",
- "2019-12-18 -1,474.54\n",
- "2019-12-19 -1,474.54\n",
- "2019-12-20 -1,474.54\n",
- "2019-12-21 -1,474.54\n",
- "2019-12-22 -1,474.54\n",
- "2019-12-23 -1,474.54\n",
- "2019-12-24 -1,474.54\n",
- "2019-12-25 -1,474.54\n",
- "2019-12-26 -1,474.54\n",
- "2019-12-27 -1,474.54\n",
- "2019-12-28 -1,474.54\n",
- "2019-12-29 -1,474.54\n",
- "2019-12-30 -1,474.54\n",
- "2019-12-31 -1,474.54\n",
- "Freq: D, dtype: float64"
- ]
- },
- "execution_count": 12,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"f(df_balances, df_rates, \"GS\", \"2019-12-01\", \"2019-12-31\").sum(axis=1)"
]