Тёмный
No video :(

James Powell - More About Generators | PyData London 2018 

PyData
Подписаться 161 тыс.
Просмотров 12 тыс.
50% 1

PyData London 2018
Generators were a compelling feature when added to Python 2.2 in seventeen years ago with PEP-255. When they were enhanced to become coroutines with PEP-342, they gained additional capabilities for modelling common problems.
But, surprisingly, we don't often see generators discussed as a core tool in the data scientist, computational scientist, and data engineer's toolkit. Why not?
---
www.pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R.
PyData conferences aim to be accessible and community-driven, with novice to advanced level presentations. PyData tutorials and talks bring attendees the latest project features along with cutting-edge use cases.
0:00 About PyData and introducing generators
1:50 Hacking the Python print function
4:36 Overview of the talk
5:32 Review
6:25 Three different implementations of the add function
8:15 Adding a state variable, the difference between class and function
11:05 A compute function with sleep
13:55 Using the generator pattern with _iter_ and _next_
15:15 Differences in approaches: laziness, storage
17:27 What generators are
19:40 Pipelines and nwise function
21:05 Writing a basic scheduler with generators
23:05 Why they are not what you think they are
23:40 Timing code and Python not being optimal vs Perl for scientists
27:55 Have some fun, computing graphs
29:10 Implementing a graph structure with generators
31:20 Improving the design with more laziness
38:00 Final version of the code (propagation in nodes of a graph)
39:00 Conclusion
S/o to github.com/mycaule for the video timestamps!
Want to help add timestamps to our RU-vid videos to help with discoverability? Find out more here: github.com/numfocus/RU-vidVi...

Опубликовано:

 

12 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
James Powell: Objectionable Content | PyData Austin 2019
1:26:40
James Powell - Generators Will Free Your Mind
45:12
Просмотров 33 тыс.
Loop like a native: while, for, iterators, generators
29:15
James Powell: Design Principles | PyData DC 2016
41:35
Let's SQL Like It's 1992! - James Powell
40:03
Просмотров 16 тыс.