

Discover more from Daily Dose of Data Science
We mostly run a Python pipeline by invoking a script (.๐ฝ๐ file).
But did you know you can also execute the Python project directory as a script?
To do this, rename the base file of your project to __๐บ๐ฎ๐ถ๐ป__.๐ฝ๐.
As a result, you can execute the whole pipeline by running the parent directory itself.
This is concise and elegant.
It also makes it easier for other users to use your project, as they are not required to dig into the directory and locate the base file.
๐ Over to you: What are some elegant Python tricks that you frequently use? Let me know :)
๐ Read what others are saying about this post on LinkedIn and Twitter.
๐ Tell the world what makes this newsletter special for you by leaving a review here :)
๐ If you liked this post, donโt forget to leave a like โค๏ธ. It helps more people discover this newsletter on Substack and tells me that you appreciate reading these daily insights. The button is located towards the bottom of this email.
๐ If you love reading this newsletter, feel free to share it with friends!
๐ Sponsor the Daily Dose of Data Science Newsletter. More info here: Sponsorship details.
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 and Twitter.