

Discover more from Daily Dose of Data Science
High-quality insights on Data Science and Python, along with best practices — shared daily.
Get a 550+ Page Data Science PDF Guide and 450+ Practice Questions Notebook, FREE.
Over 36,000 subscribers
Continue reading
When your function takes many arguments, it can be a good idea to simplify it by using partial functions.
They let you create a new version of the function with some of the arguments fixed to specific values.
This can be useful for simplifying your code and making it more readable and concise. Moreover, it also helps you avoid repeating yourself while invoking functions.
Share this post on LinkedIn: Link.
Find the code for my tips here: GitHub.
I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn.
Simplify Your Functions With Partial Functions
I wish I had time to do Logo again (turtle graphics).
Here's my weekly dose of science: https://www.thunderbolts.info/forum3/phpBB3/viewtopic.php?f=5&t=26&p=8469#p8469
And a less frequent dose: https://substack.com/profile/98340589-len-kinder
def quadratic(x, a, b, c = 1): achieves the same thing without requiring an import right?