We have already downloaded the Iris flower dataset, which can be found at chp8/10_connecting_process_pipe/iris.data of the code download for this book.
If you happen to look at the Iris data, you will see there are 150 rows of the following format:
Here, there are multiple attributes separated by a comma (,) and the attributes are as follows:
- Sepal length in cm
- Sepal width in cm
- Petal length in cm
- Petal width in cm
- Iris Setosa
- Iris Versicolour
- Iris Virginica
In this recipe, we will find the total number of flowers in each class, namely Setosa, Versicolour, and Virginica.
We will make use of a pipeline with the following commands (using a Unix-based operating system):
$ cat iris.data.txt ...