scikit-learn or sklearn is an open-source machine learning library for the Python programming.

scikit-learn library is built on top of NumPy, SciPy, and matplotlib.

sklearn library is used for data mining and data analysis.

sklearn library provides many algorithms for classification, regression, clustering, and dimensionality reduction

sklearn can be installed by simply typing the below command

pip install scikit-learn

Below is the sample code to import a library using sklearn

from sklearn import linear_model

sklearn library provides many inbuilt datasets which you can use to build and test machine learning models.