From 6f2ce960f464119e3e4291143718bb5ddb5315a9 Mon Sep 17 00:00:00 2001 From: Maciej Nasinski Date: Wed, 4 Oct 2023 20:53:43 +0200 Subject: [PATCH] Update 04_dependency.ipynb --- src/multidim/notebooks/04_dependency.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multidim/notebooks/04_dependency.ipynb b/src/multidim/notebooks/04_dependency.ipynb index 06b6def..3cb1790 100644 --- a/src/multidim/notebooks/04_dependency.ipynb +++ b/src/multidim/notebooks/04_dependency.ipynb @@ -130,8 +130,8 @@ "metadata": {}, "outputs": [], "source": [ - "table_raw = pd.crosstab(auto.rep78.fillna('missing'), auto.foreign)\n", - "table_full = pd.crosstab(auto.rep78.fillna('missing'), auto.foreign, margins = True)\n", + "table_raw = pd.crosstab(auto.rep78.fillna('missing'), auto.foreign.astype('str'))\n", + "table_full = pd.crosstab(auto.rep78.fillna('missing'), auto.foreign.astype('str'), margins = True)\n", "table_full" ] },