Skip to content

Commit

Permalink
[FIX] from crosstab() to pd.crosstab()
Browse files Browse the repository at this point in the history
  • Loading branch information
KomissarovSemyon committed Jul 15, 2019
1 parent cd082b0 commit 31dbd34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
},
"outputs": [],
"source": [
"tab = crosstab(y, cluster_labels, margins=True)\n",
"tab = pd.crosstab(y, cluster_labels, margins=True)\n",
"tab.index = ['ходьба', 'подъем вверх по лестнице', \n",
" 'спуск по лестнице', 'сидение', 'стояние', 'лежание', 'все']\n",
"tab.columns = ['cluster' + str(i + 1) for i in range(6)] + ['все']\n",
Expand Down Expand Up @@ -676,7 +676,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 31dbd34

Please sign in to comment.