From the course: Python Data Analysis (2020)
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Warmup with Python loops - Python Tutorial
From the course: Python Data Analysis (2020)
Warmup with Python loops
- [Instructor] We will begin every video by importing a standard set of Python modules that we need. This is a typical list. It's expedient to load often used modules by giving them a shorter alias. NP is the community standard for NumPy, PD for pandas. We also load this simple commander entity interface to matplotlib, pyplots, and finally, we ask the Jupyter notebook to keep the plots that we make in the notebook itself instead of opening a different window. So I shall now execute this cell by pressing Shift + Return. If you've worked in programming before, you must be familiar with loops. They allow us to automate repetitive operations. And loops are a good topic to start a quick review of the Python core language, which will focus on the features that are most important to work with data. So, how exactly do loops work in Python? We see them in a concrete example. Consider the combinatorial problem of breaking a U.S…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.