Coders Packet

Visualizations on Iris data in Python

By THOTA SOWMIKA

Below is the given Python code using matplotlib and seaborn. This is about the iris data and showing the visualizations on the data.

First, we will import pandas, a data processing and CSV file I/O library. We Will also import seaborn, a Python graphing library.
Next, we'll load the Iris flower dataset. The iris dataset is now a Pandas DataFrame.

The first way we can plot things is using the .plot extension from Pandas dataframes. We will use this to make a scatterplot of the Iris features.
We can also use the seaborn library to make a similar plot. A seaborn jointplot shows bivariate scatterplots and univariate histograms.

We will use seaborn's FacetGrid to color the scatterplot by species.
 


 

 

Download Complete Code

Comments

No comments yet