aboutsummaryrefslogtreecommitdiffstats
path: root/python/notebooks/Allocation Reports.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'python/notebooks/Allocation Reports.ipynb')
-rw-r--r--python/notebooks/Allocation Reports.ipynb10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/notebooks/Allocation Reports.ipynb b/python/notebooks/Allocation Reports.ipynb
index 14756d41..00ad7972 100644
--- a/python/notebooks/Allocation Reports.ipynb
+++ b/python/notebooks/Allocation Reports.ipynb
@@ -45,7 +45,7 @@
"#Capital Allocation\n",
"cap_alloc = go.alloc('capital')\n",
"alloc1 = cap_alloc.xs(report_date)\n",
- "go.cap_alloc_plot(alloc1)"
+ "go.cap_alloc_plot_pie(alloc1)"
]
},
{
@@ -85,10 +85,10 @@
"outputs": [],
"source": [
"df = cap_alloc.endbooknav.groupby('periodenddate').apply(lambda x: x/x.sum())\n",
- "df = df.unstack().groupby(pd.TimeGrouper('M')).apply(lambda df: df.loc[df.index[-1]])\n",
+ "df = df.unstack().groupby(pd.Grouper(freq='M')).apply(lambda df: df.loc[df.index[-1]])\n",
"df = go.shift_cash(datetime.date(2017,11,30), -2096454, df, 'Curve')\n",
"temp = df.iloc[-1].sort_values(ascending=False)\n",
- "df = df.reindex_axis(temp.index, axis=1)"
+ "df = df.reindex(temp.index, axis=1)"
]
},
{
@@ -97,7 +97,7 @@
"metadata": {},
"outputs": [],
"source": [
- "ax = go.cap_alloc_plot(df[:-1])\n",
+ "ax = go.cap_alloc_plot_bar(df[:-1])\n",
"lgd = ax.legend(loc='lower center', bbox_to_anchor=(0.5, -0.3), ncol=4)\n",
"ax.figure.savefig(\"/home/serenitas/edwin/PythonGraphs/cap_alloc_1.png\", bbox_extra_artists=(lgd,), bbox_inches='tight')"
]
@@ -135,7 +135,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.1"
+ "version": "3.6.4"
}
},
"nbformat": 4,