Professional Documents
Culture Documents
ML 10
ML 10
Theory: Iris Dataset is considered as the Hello World for data science. It contains five
columns namely – Petal Length, Petal Width, Sepal Length, Sepal Width, and Species
Type. Iris is a flowering plant, the researchers have measured various features of the
different iris flowers and recorded them digitally.
You can download the Iris.csv file from the above link. Now we will use the Pandas library
to load this CSV file, and we will convert it into the dataframe. read_csv() method is used
to read CSV files.
Code:
import os
for dirname, _, filenames in os.walk('/kaggle/input'):
for filename in filenames:
print(os.path.join(dirname, filename))
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
iris = pd.read_csv('/kaggle/input/iris/Iris.csv')
iris.head()
iris.shape
iris.info()
Output:
Learning Objectives: Our main objective is to classify the flowers into their respective species -
Iris setosa, Iris virginica and Iris versicolor by using various possible plots.