Welcome! Today, we'll explore scatter plots and their creation with Seaborn, a Python library built on Matplotlib. We will master the construction, customization, and interpretation of scatter plots. Let's get started!
A scatter plot is a data visualization tool that represents two variables from a dataset as points on a Cartesian graph. Scatter plots are utilized in exploring correlations between variables.
Meet Seaborn, a Python library designed to create beautiful statistical graphics. It facilitates quick and easy creation of colorful and informative visuals from complex datasets.
We use the scatterplot()
function to create a scatter plot in Seaborn. We provide it with our data and the names of the columns to search for x and y values. Let's illustrate this concept using a small dataset, which is created this way:
This dummy dataset maps the number of study hours for ten students to their respective test scores.
Now, let's plot this data using scatterplot()
.
