Introduction to AI and ML
A customer churn mini demo:
You need to download the following two files and unzip them into the folder you created for VS Code:
How to Unzip Files
A .zip file is a single compressed file that holds one or more other files inside it. Course materials are distributed this way so that a notebook and its dataset download as one small file. Before you can open a notebook or read a dataset, you have to extract (unzip) it — the files inside a zip are not usable while they are still zipped.
The goal is always the same: end up with the real file (for example churn-mini.csv) sitting in your course folder, next to your notebook.
Windows
- Open File Explorer and go to your
Downloadsfolder. - Right-click the
.zipfile and choose Extract All… - Click Browse and pick the folder you created for VS Code, then click Extract.
Windows lets you double-click a zip and browse inside it without extracting. That preview is not a real folder — if you open a notebook from there, VS Code cannot save your work and Python cannot find the dataset. Always use Extract All… first.
macOS
- Open Finder and go to your
Downloadsfolder. - Double-click the
.zipfile. macOS extracts it immediately into the same folder, leaving the original.zipbehind. - Drag the extracted file or folder into the folder you created for VS Code.
Safari may unzip downloads automatically, so you may find the extracted file already waiting for you and no .zip at all.
Command line
If you prefer the terminal, the -d flag says where the contents should go:
# macOS / Linux
unzip churn-mini.csv.zip -d ~/bana409
# Windows PowerShell
Expand-Archive churn-mini.csv.zip -DestinationPath C:\Users\you\bana409Check your work
After extracting, open the folder in VS Code and confirm you can see the actual file name — churn-mini.csv, not churn-mini.csv.zip. A few things that commonly go wrong:
- The file is still zipped. You browsed inside the zip instead of extracting it. Extract it properly.
- Everything landed in an extra nested folder such as
churn-mini/churn-mini/. Move the inner file up so it sits directly in your course folder. - You see a
__MACOSXfolder or files starting with._. These are macOS bookkeeping files. Ignore or delete them; they are not part of the material. - Your notebook cannot find the dataset. The
.csvand the.ipynbmust be in the same folder, otherwisepd.read_csv("churn-mini.csv")fails.