Python
Python
import pandas as pd
# reading the database
data = pd.read_csv("tips.csv")
Matplotlib
Matplotlib is an easy-to-use, low-level data visualization library that is built on
NumPy arrays. It consists of various plots like scatter plot, line plot, histogram,
etc.
To install this type the below command in the terminal.
pip install matplotlib
After installing Matplotlib, let’s see the most commonly used plots using this
library.
Scatter Plot
Scatter plots are used to observe relationships between variables and uses dots
to represent the relationship between them. The scatter() method in the
matplotlib library is used to draw a scatter plot.
Line Chart
Line Chart is used to represent a relationship between two data X and Y on a
different axis. It is plotted using the plot() function.