# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import pandas as pd
import seaborn as sb
import numpy as np
import matplotlib.pyplot as plt
iris = pd.read_csv("iris.csv")
iris

print(iris.columns)

print(iris.shape)

iris["species"].value_counts()

# +
#2D Scatter plot

iris.plot(kind = 'scatter',x = 'sepal_length', y ='sepal_width')
plt.show()
# -

sb.set_style("whitegrid")
sb.FacetGrid(iris, hue ='species',size = 4)\
   .map(plt.scatter, "petal_length","petal_width")\
   .add_legend();
plt.show()

#Pair Plot or 3D Scatter plot
plt.close()
sb.set_style("whitegrid")
sb.pairplot(iris, hue = "species", size =3)
plt.show()



StarcoderdataJupyterScriptsDedupFiltered