From 06b19afeb890bb1e161ee49871c739888ecd4e74 Mon Sep 17 00:00:00 2001 From: Jakob Klotz Date: Sat, 21 Feb 2026 09:44:04 +0100 Subject: [PATCH 1/4] docs (fix): pd.DataFrame name --- docs/data-science/data/basics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data-science/data/basics.md b/docs/data-science/data/basics.md index 9274e0b8..08c5e423 100644 --- a/docs/data-science/data/basics.md +++ b/docs/data-science/data/basics.md @@ -160,8 +160,8 @@ How many rows and columns has the `penguin` dataset? - [ ] 5 rows and 8 columns - [x] 344 rows and 7 columns -The data set has 344 rows (penguins) and 7 columns (features). Use `data.shape` -to quickly get the datasets dimensions. +The data set has 344 rows (penguins) and 7 columns (features). Use +`penguins.shape` to quickly get the datasets dimensions. ???+ question "Identify attribute types" From 47bc240fb68043eaa4aa4000f68bb40760c2f353 Mon Sep 17 00:00:00 2001 From: Jakob Klotz Date: Sat, 21 Feb 2026 10:07:54 +0100 Subject: [PATCH 2/4] docs: warning admonition to restart VS Code --- docs/data-science/basics/setup.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/data-science/basics/setup.md b/docs/data-science/basics/setup.md index bf758dd2..b74941bd 100644 --- a/docs/data-science/basics/setup.md +++ b/docs/data-science/basics/setup.md @@ -143,6 +143,12 @@ uv init --vcs none # (1)! By default `--vcs git` is set, which initializes a git repository. Since git is not within the scope of this project, we set `--vcs` to none. +???+ warning "Restart VS Code if command fails" + + If the command returns an error saying `uv` was not found, close and reopen + VS Code. This allows your system to recognize the newly installed `uv` + executable. Then run the command again. + This initializes the project. `uv` creates a few files in your folder. Your workspace should look like this: From fc9b203a102f3c01613fcf73164fef1108f56711 Mon Sep 17 00:00:00 2001 From: Jakob Klotz Date: Sat, 21 Feb 2026 10:38:17 +0100 Subject: [PATCH 3/4] docs: admonition, numbers are not always numerical attributes --- docs/data-science/data/basics.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/data-science/data/basics.md b/docs/data-science/data/basics.md index 08c5e423..a934a7b9 100644 --- a/docs/data-science/data/basics.md +++ b/docs/data-science/data/basics.md @@ -71,6 +71,26 @@ Examples include number of students (5) or age (22). A simple rule of thumb: If you can meaningfully have fractional values, it's continuous. If counting whole units makes more sense, it's discrete. +???+ warning "Numbers aren't always numerical data" + + Just because data is stored as numbers doesn't make it numerical. + Consider ZIP codes, their mean is mathematically possible but conceptually + meaningless. + + ```python + zip_codes = pd.Series([6020, 1050, 6011, 1010]) + print(f"Average ZIP code: {zip_codes.mean()}") # Makes no sense! + ``` + + ```title=">>> Output" + Average ZIP code: 3522.75 + ``` + + If you can't meaningfully add, subtract or average the values, it's + categorical data in disguise. + + Other examples are customer IDs or coordinates. + ### Categorical (Qualitative) Categorical data represents qualities or characteristics that place From 401efafc2ad8d7248fbeb85ae9454f23bb03d047 Mon Sep 17 00:00:00 2001 From: JakobKlotz Date: Tue, 24 Feb 2026 10:15:32 +0100 Subject: [PATCH 4/4] docs: admonition on navigating command history --- docs/data-science/basics/setup.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/data-science/basics/setup.md b/docs/data-science/basics/setup.md index b74941bd..421433cb 100644 --- a/docs/data-science/basics/setup.md +++ b/docs/data-science/basics/setup.md @@ -149,6 +149,12 @@ uv init --vcs none # (1)! VS Code. This allows your system to recognize the newly installed `uv` executable. Then run the command again. +???+ tip "Navigate command history" + + There's no need to re-type old commands. Press ++arrow-up++ / + ++arrow-down++ to cycle through previously executed commands in the + terminal. + This initializes the project. `uv` creates a few files in your folder. Your workspace should look like this: