diff --git a/chapters/module1.md b/chapters/module1.md index 5ac8e7a..323a92f 100644 --- a/chapters/module1.md +++ b/chapters/module1.md @@ -37,7 +37,7 @@ Is this an easy way to organize data? -Good job! +Good job! @@ -61,13 +61,13 @@ Nice work! Pandas is a package we import so we can use additional features. -Are you sure you know the difference between Python and Pandas? +Are you sure you know the difference between Python and Pandas? -Although that isn't wrong, we are studying Python and coding and in this course, the context is not quite right. +Although that isn't wrong, we are studying Python and coding and in this course, the context is not quite right. @@ -75,19 +75,19 @@ Although that isn't wrong, we are studying Python and coding and in this course, - + -Let's try importing pandas and loading in our own dataset. +Let's try importing pandas and loading in our own dataset. **Instructions:** -When you run a code exercise for the first time, it could take a bit of time for everything to load. +When you run a code exercise for the first time, it could take a bit of time for everything to load. **When you see `____` in a code exercise, replace it with what you assume to be the correct code. Run it and see if it you obtain the desired output. Submit your code to validate if you were correct.** -- Import `pandas` as `pd`. -- Load in a dataset named `.csv`. +- Import `pandas` as `pd`. +- Load in a dataset named `canucks.csv`. - Save the dataframe as `hockey_players`. - Display the first 5 rows of the dataframe @@ -98,12 +98,16 @@ When you run a code exercise for the first time, it could take a bit of time for + + + + - Now Let's display the column names of `hockey_players` and save it as `columns_hockey`. - Save the number of rows `hockey_players` has in a variable called `hockey_rows`. -- The data frame dimension should be save as `hockey_dim`. +- The data frame dimension should be save as `hockey_dim`. - + - Are you sure you are saving your objects correctly? - Are you using `len()`, `df.shape` and `df.columns`? @@ -112,14 +116,14 @@ When you run a code exercise for the first time, it could take a bit of time for - + - + - + **Question** @@ -127,13 +131,13 @@ When you run a code exercise for the first time, it could take a bit of time for -Let's look into this more +Let's look into this more -Good job! +Good job! @@ -147,7 +151,7 @@ Maybe not the right answer. - + - \ No newline at end of file + diff --git a/exercises/exc_01_03b.py b/exercises/exc_01_04.py similarity index 100% rename from exercises/exc_01_03b.py rename to exercises/exc_01_04.py diff --git a/exercises/solution_01_03b.py b/exercises/solution_01_04.py similarity index 100% rename from exercises/solution_01_03b.py rename to exercises/solution_01_04.py diff --git a/exercises/test_01_03b.py b/exercises/test_01_04.py similarity index 100% rename from exercises/test_01_03b.py rename to exercises/test_01_04.py diff --git a/package-lock.json b/package-lock.json index 77d490e..fcdaf39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "DSCI-571", + "name": "DSCI-511", "version": "0.0.1", "lockfileVersion": 1, "requires": true, @@ -6712,8 +6712,7 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true, - "optional": true + "bundled": true }, "aproba": { "version": "1.2.0", @@ -6731,13 +6730,11 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -6750,18 +6747,15 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "concat-map": { "version": "0.0.1", - "bundled": true, - "optional": true + "bundled": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "core-util-is": { "version": "1.0.2", @@ -6864,8 +6858,7 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, - "optional": true + "bundled": true }, "ini": { "version": "1.3.5", @@ -6875,7 +6868,6 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6888,20 +6880,17 @@ "minimatch": { "version": "3.0.4", "bundled": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true, - "optional": true + "bundled": true }, "minipass": { "version": "2.3.5", "bundled": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -6918,7 +6907,6 @@ "mkdirp": { "version": "0.5.1", "bundled": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -6991,8 +6979,7 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "object-assign": { "version": "4.1.1", @@ -7002,7 +6989,6 @@ "once": { "version": "1.4.0", "bundled": true, - "optional": true, "requires": { "wrappy": "1" } @@ -7078,8 +7064,7 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true, - "optional": true + "bundled": true }, "safer-buffer": { "version": "2.1.2", @@ -7109,7 +7094,6 @@ "string-width": { "version": "1.0.2", "bundled": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -7127,7 +7111,6 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -7166,13 +7149,11 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true, - "optional": true + "bundled": true }, "yallist": { "version": "3.0.3", - "bundled": true, - "optional": true + "bundled": true } } }, diff --git a/slides/module1_01.md b/slides/module1_01.md index 8e767ac..1108de3 100644 --- a/slides/module1_01.md +++ b/slides/module1_01.md @@ -2,16 +2,16 @@ type: slides --- -# What is a Dataframe? +# What is a Dataframe? When working with information, it's important that it is stored in as manner that is organised, readable and accessible. -A **data frame** is a table or a 2 dimensional structure in which **columns** contain values from a variable and **rows** are occurances, examples or data points. +A **data frame** is a table or a 2 dimensional structure in which **columns** contain values from a variable and **rows** are occurances, examples or data points. -Data frames make it easy to calculate statistics and clean and store data. +Data frames make it easy to calculate statistics and clean and store data. Essentially dataframe's look like excel sheets and are a essential part of data science. -Notes: Script here. +Notes: Script here.