Python for Data Engineers: Using Function Decorators

preview_player
Показать описание
Function decorators are like inheritance for Python functions. They let you easily add functionality to existing functions without changing the decorated function. And they are used in many popular Python frameworks including Django, Flask, and even Databricks. Learn what decorators are, how to use them, and how to write your own!

Patreon Community and Watch this Video without Ads!

Demo Jupyter Notebook available at:
Рекомендации по теме
Комментарии
Автор

Great and super useful series! Appreciate it so much as a DE beginner, looking forward to the next one.

Ярослав-юнз
Автор

A must for me to check. I'm trying to grasp usage of functools in decorators.

marcinx
Автор

Superb ! Thanks ! One question...Even if I comment out the @wraps, it is working the same..Can you please explain the wraps ?

Raaj_ML
Автор

Do you have a playlist for python for data engineering?

frag_it
Автор

@lru_cache is the one I’m most familiar with. Does the decorator have to be on it’s own line or can I just search and replace def with @decorator def. Similar to how Java annotations can be on the same line as the thing they are annotating.

rydmerlin