Pyforest– Importing Python Data Science Libraries in One Line of Code

Image source:

To import libraries in python, different lines of codes are required.

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
##imported pandas, matplotlib, seaborn and numpy

This new library “Pyforest” can reduce the set of above codes to one single code. Now, you can import most of the libraries using a single line of code of Pyforest.

Below is the terminal installation

AdvertisementCoursera Plus banner featuring Johns Hopkins University, Google, and University of Michigan courses highlighting data science career-advancing content
From the terminal, enter:

pip install pyforest

Single line of code to import all python libraries.

from pyforest import *

Github Link:



Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.