Skip to content

Commit 505acc9

Browse files
proof reading: self study data analysis task 1
1 parent 349a03f commit 505acc9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

individual_modules/introduction_to_python/analysis_task_1.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"id": "4a28ab32-78b5-48bb-a962-c01f9ad3eaa2",
100100
"metadata": {},
101101
"source": [
102-
"The expression `np.loadtxt(...)` is a function call that asks Python to run the function `loadtxt` which belongs to the `numpy` library. The dot notation in Python is used most of all as an object attribute/property specifier or for invoking its method. `object.property` will give you the object.property value, `object_name.method()` will invoke on object_name method.\n",
102+
"The expression `np.loadtxt(...)` is a function call that asks Python to run the function `loadtxt` which belongs to the `numpy` library. The dot notation in Python is used most of all as an object attribute/property specifier, or for invoking its method. `object.property` will give you the object.property value, `object_name.method()` will invoke on object_name method.\n",
103103
"\n",
104104
"As an example, John Smith is the John that belongs to the Smith family. We could use the dot notation to write his name `smith.john`, just as `loadtxt` is a function that belongs to the `numpy` library.\n",
105105
"\n",
@@ -257,7 +257,7 @@
257257
"source": [
258258
"The output tells us that the `data` array variable contains 60 rows and 40 columns. When we created the variable `data` to store our arthritis data, we did not only create the array; we also created information about the array, called members or attributes. This extra information describes `data` in the same way an adjective describes a noun. `data.shape` is an attribute of `data` which describes the dimensions of `data`. We use the same dotted notation for the attributes of variables that we use for the functions in libraries because they have the same part-and-whole relationship.\n",
259259
"\n",
260-
"If we want to get a single number from the array, we must provide an index in square brackets after the variable name, just as we do in math when referring to an element of a matrix. Our inflammation data has two dimensions, so we will need to use two indices to refer to one specific value:"
260+
"If we want to get a single number from the array, we must provide an index in square brackets after the variable name, just as we do in maths when referring to an element of a matrix. Our inflammation data has two dimensions, so we will need to use two indices to refer to one specific value:"
261261
]
262262
},
263263
{
@@ -355,7 +355,7 @@
355355
"id": "6fe8654d-647b-45b0-8f9e-a5ed2061dfd7",
356356
"metadata": {},
357357
"source": [
358-
"The slice `0:4` means, \"Start at index 0 and go up to, but not including, index 4\". Again, the up-to-but-not including takes a bit of getting used to, but the rule is that the difference between the upper and lower bounds is the number of values in the slice.\n",
358+
"The slice `0:4` means, \"Start at index 0 and go up to, but not including, index 4\". Again, the up-to-but-not-including takes a bit of getting used to, but the rule is that the difference between the upper and lower bounds is the number of values in the slice.\n",
359359
"\n",
360360
"We don't have to start slices at 0:"
361361
]
@@ -455,7 +455,7 @@
455455
"\n",
456456
"## Not All Functions Have Input\n",
457457
"\n",
458-
"Generally, a function uses inputs to produce outputs.However, some functions produce outputs without\n",
458+
"Generally, a function uses inputs to produce outputs. However, some functions produce outputs without\n",
459459
"needing any input. For example, checking the current time doesn't require any input."
460460
]
461461
},
@@ -808,7 +808,7 @@
808808
"metadata": {},
809809
"source": [
810810
"## Thin Slices\n",
811-
"The expression `element[3:3]` produces an empty string, i.e., a string that contains no characters. If `data` holds our array of patient data, what does `data[3:3, 4:4]` produce?What about `data[3:3, :]`?"
811+
"The expression `element[3:3]` produces an empty string, i.e., a string that contains no characters. If `data` holds our array of patient data, what does `data[3:3, 4:4]` produce? What about `data[3:3, :]`?"
812812
]
813813
},
814814
{
@@ -955,7 +955,7 @@
955955
"id": "72bcfd3a-bf13-4a28-b161-b84fe58ddd4c",
956956
"metadata": {},
957957
"source": [
958-
"alling `np.diff(patient3_week1)` would do the following calculations and return the 6 difference values in a new array."
958+
"Calling `np.diff(patient3_week1)` would do the following calculations and return the 6 difference values in a new array."
959959
]
960960
},
961961
{
@@ -1104,7 +1104,7 @@
11041104
"name": "python",
11051105
"nbconvert_exporter": "python",
11061106
"pygments_lexer": "ipython3",
1107-
"version": "3.12.2"
1107+
"version": "3.9.19"
11081108
}
11091109
},
11101110
"nbformat": 4,

0 commit comments

Comments
 (0)