The correct way to import the Matplotlib library is by using import matplotlib.pyplot as plt command.
This command imports the pyplot module from the Matplotlib library and assigns it the alias plt. The pyplot module contains a collection of functions that are used to create a variety of charts and graphs.