What is iris.data?

QuestionsQuestions8 SkillsProDec, 10 2025
089

iris.data is the core feature data of the Iris dataset.

In simpler terms:

  • It's a NumPy array.
  • It contains the measurements (features) for each flower.
  • Each row in the array represents a single flower sample.
  • Each column in the array represents a specific measurement (e.g., sepal length, sepal width, petal length, petal width).

So, when you print iris.data, you are seeing all the numerical features that describe each of the 150 Iris flowers in the dataset.

0 Comments

no data
Be the first to share your comment!