%%HTML
<link rel="stylesheet" type="text/css" href="https://raw.githubusercontent.com/malkaguillot/Foundations-in-Data-Science-and-Machine-Learning/refs/heads/main/docs/utils/custom.css">
<link rel="stylesheet" type="text/css" href="../utils/custom.css">
Where have you done your bachelor ?
Major ?
Programming experience?
A specific interest in: a method / a theme?
The class focuses concepts & skills related to the management of data, that are central for the exploitation of data.
Goals:
Public targeted:
What role plays Hollywood in perpetuating traditonal gender roles ?
A contemporary and (partially) unanswered research question where data are central


Sessions are designed to be interactive
The homeworks are simple exercises designed to help you to "get your hands in the data & code".
Should be given back as jupyter notebooks on StudyNet.
Before handing in the notebook, you should restart your kernel and run it from the beginning to the end.
The
End-to-end data project using Python
From collection to modelling through visualisation
Should answer an open-question with data
Group project (2 people; 3 of odd no. of students)
Use what you learn in this course to
pwd)cd to navigate to different directoriescd .. to go up one directoryls to list directoriesmkdir to create a new directorytouch to create a new filerm to remove a filermdir to remove a directorycp to copy a fileDefinition: A version control system
Enables
Provides an organized
$\Rightarrow$ key tool from our
$\Rightarrow$ widely used in a companies / not enough in research:
Definition: A web-based platform for version control and collaboration (using git)
Navigate to GitHub's homepage. Navigate to "Sign Up" in the top right hand side of the page.
Install Git (Linux, Mac, Windows) if not already installed
Git comes with a command line interface (powerful!).
You might want to add a graphical interface to make things easier:
3 special options:
README.mdAt a minimum:
I also recommend:
These are binary files, so you can’t see differences between versions. I recommend including them anyway.
Some people also include all datasets.
For datasets, look into Git Large File Storage.
In order to avoid driving your collaborators crazy, you must tell Git to ignore the junk files using a file called .gitignore. It looks like this:
Best practice: use .gitignore to explicitly exclude everything that you don’t want to include, and commit .gitignore like any other regular file.
GitHub maintains a list of standard .gitignore files for many common languages.
ctrl+Sgit add <filename> or git add . (all files)git statusgit commit -m "message""One discrete task" = a collection of changes, across multiple files (or not), that does one thing.
Examples:
Examples:
→ The more detail, the more your future self will thank you.
git commit -m "Add slide on the commit git lecture"
This is what happens between your computer (local) and your repository (remote).
git push origin <branch_name>
git pull origin <branch_name>
git push origin <branch_name>
Sending my commits to the internet!
Not only useful for README: for eg., these slides are written in markdown!
✅ Verify Python is on your PATH
python --version
# → 3.11.2 (example)
| Extension | ID | Why you need it | |-----------|----|-----------------| | Python | ms-python.python | Core language support, linting, IntelliSense | | Jupyter | ms-toolsai.jupyter | Notebook UI, cell execution, kernels | | Pylance (optional) | ms-python.vscode-pylance | Faster type checking & autocompletion |
How to install
Ctrl+Shift+X)(You can also run code --install-extension ms-python.python from a terminal.)
Python: Create New Blank Jupyter Notebook (Ctrl+Shift+P)Untitled.ipynb opens with a single empty cell# Example: hello world
print("Hello, VS Code + Jupyter!")
Press Shift+Enter to run the cell → output appears below.
| Symbol | Action |
|--------|--------|
| ▶️ Run Cell (Shift+Enter) | Execute current cell and move to next |
| ⏹️ Stop (Esc) | Interrupt kernel |
| ➕ Add Cell (A / B) | Insert above (A) or below (B) |
| 🗑️ Delete Cell (DD) | Delete selected cell |
| 🔄 Restart Kernel (Ctrl+.) | Restart the Python process |
Tip: Hover over any button to see the shortcut. You can also press
?in a cell to view the cheat‑sheet.