Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesPython with AI from Zero: Scripts for WorkFiles and CSV: read, filter, save
A five-line Python script finds unpaid clients in a sales tableClaude Code terminal: the claude -p command with Read and Edit allowedRetries after a 429 error: each pause is twice as long, then success
Course

Python with AI from Zero: Scripts for Work

Module 1 · First script
01Install Python and run your first AI-written script02
Get started free
Variables, lists, conditions and loops on real work examples
Module 2 · Files and spreadsheets
03Files and CSV: read, filter, save04Excel tables with pandas: summary, filter, .xlsx report
Module 3 · AI inside your script and automation
05Calling a model from Python: the official openai and anthropic SDKs06Automating chores and checking the code AI wrote
Python with AI from Zero: Scripts for Work · Lesson 3

Files and CSV: read, filter, save

Learn to handle exports from Python: find files with pathlib, open them with the right encoding, read and write CSV, and save unpaid customers to a separate file without touching the original.

30 min read4 questions in quizReady prompt included
🔒

Full lesson access

Files and CSV: read, filter, save opens after free sign-up: 7 days of full access to every course, no card needed.

Start 7-day free trial
Then Pro: $9/mo or $79/yr

View plans →

One trial lesson is open without sign-up: what a large language model is →

In this lesson
Why CSV matters to youPrepare the folder and the fileFile paths with pathlibopen and encodingReading with csv.DictReaderFiltering and writing with csv.DictWriterLeave the source aloneRun itHow to ask AI for a script like thisHow to check the resultPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix