Image generated by Midjourney

Python’s Most Powerful Decorator

And 5 ways to use it in data science and machine learning

Siavash Yasini
11 min readFeb 2, 2024

--

@property is my favorite decorator in Python. I have been using Python for many years now, and with each passing year, my expertise and comfort level with the language gradually grows. Among all the techniques and tricks that I’ve learned to write better code over the years, the property decorator stands out as…

--

--

Ungifted Amateur, Python Enthusiast, Latte Artist, Ex-Cosmologist, Sr Data Scientist @ Fanatics