ECON 22PIntroduction to Python for Data Science
Introduction to programming in Python with emphasis on commands and workflow useful for data science, especially in economics and other social sciences. Data science applications are interwoven with lessons about basic syntax. Topics of study include variables and operations, containers, Pandas dataframes, conditional statements and conditional slicing of dataframes, loops, advanced string processing, file input/output, functions, and data visualization. This course places less emphasis on object-oriented programming and more emphasis on practical data science applications.
Enrollment is restricted to proposed and declared economics, business management economics, global economics, economics/mathematics combined, and environmental studies/economics combined majors. Restrictions lifted after first pass enrollment.
- Restrictions have been removed and enrollment is open to all students starting with first-pass enrollment Please bring a wifi enabled laptop to every lecture; Lecture attendance is required
Find a section and add it to your scheduleLive seat counts, time-conflict checks and the walk from your previous class.
When it runs
Winter 2027Open Winter 2027
| Section | Type | When | Where | Instructor | Seats |
|---|---|---|---|---|---|
| 01 | Lecture | Mon Wed Fri 4:00pm–5:05pm | PhysSciences 110 | M. Leung | Open 0/65 |
Winter 2026Open Winter 2026
| Section | Type | When | Where | Instructor | Seats |
|---|---|---|---|---|---|
| 01 | Lecture | Mon Wed Fri 4:00pm–5:05pm | Merrill Acad 102 | M. Leung | Open 50/100 |
Who teaches it
| Instructor | Rating | Difficulty | Would take again | Reviews |
|---|---|---|---|---|
| Michael Leung | 5.0 / 5 | 3.0 / 5 | 100% | 5 |
From RateMyProfessors, which is student-submitted and not a survey. Small review counts move a long way on one bad quarter.
SlugAtlas is a student project and is not affiliated with, endorsed by, or operated by UC Santa Cruz. Course data is a snapshot of the public class search; myUCSC is authoritative for enrolment.