Discover more from Daily Dose of Data Science
Importing Modules Made Easy with Pyforest
The typical programming-related stuff in data science begins by importing relevant modules.
However, across notebooks/projects, the modules one imports are mostly the same. Thus, the task of importing all the individual libraries is kinda repetitive.
With 𝗽𝘆𝗳𝗼𝗿𝗲𝘀𝘁, you can use the common Python libraries without explicitly importing them. A good thing is that it imports all the libraries with their standard conventions. For instance, 𝗽𝗮𝗻𝗱𝗮𝘀 is imported with the 𝗽𝗱 alias.
With that, you should also note that it is a good practice to keep Pyforest limited to prototyping stages. This is because once you say, develop and open-source your pipeline, other users may face some difficulties understanding it.
But if you are up for some casual experimentation, why not use it instead of manually writing all the imports?
Read more: GitHub.
Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.
I like to explore, experiment and write about data science concepts and tools. You could connect with me on LinkedIn.