In this video, I review the example of the previous video "A first look at the map-filter-reduce paradigm", and show how we can use the map() and filter() built-ins to solve the same problem without using the memory in a significant way. map() and filter() produce objects of types map and filter that can be though of as "rules in memory" that know to generate a "next" element without generating it yet. Then, the reduction step "pulls" out the mapped and filtered elements on a one-by-one basis. In the example, the built-in sum() function does that.
PYTHON BOOK
The lecture is based on the free book "Introduction to Python & Programming".
Get it on GitHub: https://github.com/webartifex/intro-t...
SUBSCRIBE
If you like the way I teach and talk about programming and data science, subscribe to this channel.
The videos focus on coding courses and tutorials aimed at managers and students of business administration, enabling them to make better decisions with analyses done in code.
INSTRUCTOR
Alexander Hess, PhD Student
WHU - Otto Beisheim School of Management, Vallendar, Germany
CONTACT
GitHub: https://github.com/webartifex
LinkedIn: / webartifex
XING: https://xing.to/webartifex
Facebook: / webartifex
Instagram: / webartifex
Website: http://www.webartifex.biz
YouTube: / webartifex
wa-vid-071