Skip to content

Commit 281bc49

Browse files
committed
Fix typos and cells
1 parent 6c91c8e commit 281bc49

File tree

3 files changed

+39
-29
lines changed

3 files changed

+39
-29
lines changed

notebooks/python/python-basics.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,16 @@
609609
"outputs": [],
610610
"source": [
611611
"a = 1\n",
612-
"b = 2\n",
612+
"b = 2"
613+
]
614+
},
615+
{
616+
"cell_type": "code",
617+
"execution_count": null,
618+
"id": "3f47e6fe-7b70-40ac-9c01-636de614622f",
619+
"metadata": {},
620+
"outputs": [],
621+
"source": [
613622
"a == b"
614623
]
615624
},

notebooks/python/python-data-handling-pandas.ipynb

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,6 @@
145145
"df[[\"pH\", \"citric acid\", \"quality\"]].head()"
146146
]
147147
},
148-
{
149-
"cell_type": "markdown",
150-
"id": "ada0a3e9",
151-
"metadata": {},
152-
"source": [
153-
"Show unique values in a column"
154-
]
155-
},
156148
{
157149
"cell_type": "code",
158150
"execution_count": null,
@@ -246,11 +238,37 @@
246238
"source": [
247239
"# Import with setting the first column (index_col=0) as index or the sheet_name, respectively\n",
248240
"df_csv_import = pd.read_csv(\"data.csv\", sep=\",\", index_col=0)\n",
249-
"df_excel_import = pd.read_excel(\"data.xls\", sheet_name=\"data\")\n",
250-
"df_csv_import\n",
241+
"df_excel_import = pd.read_excel(\"data.xls\", sheet_name=\"data\")"
242+
]
243+
},
244+
{
245+
"cell_type": "code",
246+
"execution_count": null,
247+
"id": "25048881-9b2a-43ce-98bb-e45bb1897ce4",
248+
"metadata": {},
249+
"outputs": [],
250+
"source": [
251+
"df_csv_import"
252+
]
253+
},
254+
{
255+
"cell_type": "code",
256+
"execution_count": null,
257+
"id": "f9e6550b-3c99-43ea-a6bd-03b942bee4cf",
258+
"metadata": {},
259+
"outputs": [],
260+
"source": [
251261
"df_excel_import"
252262
]
253263
},
264+
{
265+
"cell_type": "code",
266+
"execution_count": null,
267+
"id": "0c7ef3b8-8080-41f3-a212-baeb71dbbdbe",
268+
"metadata": {},
269+
"outputs": [],
270+
"source": []
271+
},
254272
{
255273
"cell_type": "markdown",
256274
"id": "9a40013e",
@@ -692,8 +710,6 @@
692710
"metadata": {},
693711
"outputs": [],
694712
"source": [
695-
"## Construction from lists or arrays\n",
696-
"\n",
697713
"#Combine all lists\n",
698714
"data = np.array([names, ages, children]).transpose()\n",
699715
"part_data = np.array([ages, children]).transpose()\n",

notebooks/python/python-numpy.ipynb

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,6 @@
318318
"- a numpy array object contains the array of the numbers itself, compactly located in a contiguous block of memory"
319319
]
320320
},
321-
{
322-
"cell_type": "code",
323-
"execution_count": null,
324-
"id": "eae20bb2",
325-
"metadata": {},
326-
"outputs": [],
327-
"source": []
328-
},
329321
{
330322
"cell_type": "markdown",
331323
"id": "cea7079e",
@@ -447,21 +439,14 @@
447439
"print(num_1d[high])"
448440
]
449441
},
450-
{
451-
"cell_type": "markdown",
452-
"id": "a1849de5",
453-
"metadata": {},
454-
"source": [
455-
"Direct broadcasting 1D"
456-
]
457-
},
458442
{
459443
"cell_type": "code",
460444
"execution_count": null,
461445
"id": "a1074236",
462446
"metadata": {},
463447
"outputs": [],
464448
"source": [
449+
"# Direct broadcasting 1D\n",
465450
"print(num_1d[num_1d > 3])"
466451
]
467452
},

0 commit comments

Comments
 (0)