MLWhiz | AI Unwrapped

MLWhiz | AI Unwrapped

Share this post

MLWhiz | AI Unwrapped
MLWhiz | AI Unwrapped
A primer on *args, **kwargs, decorators for Data Scientists
Copy link
Facebook
Email
Notes
More

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

Rahul Agarwal's avatar
Rahul Agarwal
May 14, 2019
∙ Paid

Share this post

MLWhiz | AI Unwrapped
MLWhiz | AI Unwrapped
A primer on *args, **kwargs, decorators for Data Scientists
Copy link
Facebook
Email
Notes
More
Share
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.

Keep reading with a 7-day free trial

Subscribe to MLWhiz | AI Unwrapped to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Rahul Agarwal
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More