Commit
·
c89509e
1
Parent(s):
88dfbf3
fix: Display dataset shape
Browse files- tutorial_app.ipynb +22 -2
tutorial_app.ipynb
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
},
|
| 11 |
{
|
| 12 |
"cell_type": "code",
|
| 13 |
-
"execution_count":
|
| 14 |
"id": "vblA",
|
| 15 |
"metadata": {},
|
| 16 |
"outputs": [],
|
|
@@ -75,7 +75,27 @@
|
|
| 75 |
"id": "Xref",
|
| 76 |
"metadata": {},
|
| 77 |
"source": [
|
| 78 |
-
"**a. Shape of the
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
]
|
| 80 |
},
|
| 81 |
{
|
|
|
|
| 10 |
},
|
| 11 |
{
|
| 12 |
"cell_type": "code",
|
| 13 |
+
"execution_count": 2,
|
| 14 |
"id": "vblA",
|
| 15 |
"metadata": {},
|
| 16 |
"outputs": [],
|
|
|
|
| 75 |
"id": "Xref",
|
| 76 |
"metadata": {},
|
| 77 |
"source": [
|
| 78 |
+
"**a. Shape of the dataset**\n"
|
| 79 |
+
]
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"cell_type": "code",
|
| 83 |
+
"execution_count": 10,
|
| 84 |
+
"id": "eaed528c",
|
| 85 |
+
"metadata": {},
|
| 86 |
+
"outputs": [
|
| 87 |
+
{
|
| 88 |
+
"name": "stdout",
|
| 89 |
+
"output_type": "stream",
|
| 90 |
+
"text": [
|
| 91 |
+
"Feature dataset samples: 246008\n",
|
| 92 |
+
"Number of columns/features: 122\n"
|
| 93 |
+
]
|
| 94 |
+
}
|
| 95 |
+
],
|
| 96 |
+
"source": [
|
| 97 |
+
"print(\"Feature dataset samples: {}\".format(df.shape[0]))\n",
|
| 98 |
+
"print(\"Number of columns/features: {}\".format(df.shape[1]))"
|
| 99 |
]
|
| 100 |
},
|
| 101 |
{
|