MLWhiz | AI Unwrapped

MLWhiz | AI Unwrapped

A primer on *args, **kwargs, decorators for Data Scientists

Rahul Agarwal's avatar
Rahul Agarwal
May 14, 2019
∙ Paid
A primer on *args, **kwargs, decorators for Data Scientists

Python has a lot of constructs that are reasonably easy to learn and use in our code. Then there are some constructs which always confuse us when we encounter them in our code.

Then are some that even seasoned programmers are not able to understand. *args, **kwargs and decorators are some constructs that fall into this category.

I guess a lot of my data science friends have faced them too.

Most of the seaborn functions use *args and **kwargs in some way or other.

User's avatar

Continue reading this post for free, courtesy of Rahul Agarwal.

Or purchase a paid subscription.
© 2026 Rahul Agarwal · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture