How to show seaborn plot

You can show the Seaborn plot with the following code. The given example helps you to understand how to show the Seaborn plot. I highly recommend you “Python Crash Course Book” to learn Python.

# Import the required libraries
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt

# Load the Dataset
dataset = sns.load_dataset("iris")

# Create Boxplot
sns.boxplot(x="species", y="sepal_width", data=dataset)

# Show the plot
plt.show()

Output:

Leave a Comment

Your email address will not be published.