Sometimes, it happens that we spent a huge amount of time importing some common libraries like
nltk and many more. To remove this headache of importing such libraries manually, we have
It is that library which helps you to work directly without importing other libraries separately.
It itself adds up some of the highly usable libraries used in DataScience while we are using it.
Functions of pyforest :
- active_imports(): It will return all the libraries which have been used in the program.
- lazy_imports(): It will return all the libraries available in pyforest.
pip install pyforest
Let’s see the usage of
pyforest with various libraries.
- Numpy: NumPy is a general-purpose array-processing package. It provides a high-performance multidimensional array object, and tools for working with these arrays.
[[1 2 3] [4 5 6] [7 8 9]]
Note: For more information, refer to NumPy in Python
A B C 0 1 4 7 1 2 5 8 2 3 6 9
Note: For more information, refer to Python | Pandas DataFrame
['All', 'apples', 'are', 'red', 'in', 'colour']
Note: For more information, refer to Tokenize text using NLTK in python
Note: For more information, refer to Introduction to Matplotlib
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course