Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

How to load Iris dataset into a data frame?

$
0
0

I need to Load Iris dataset into a data frame. Check out and print the information of this dataset. and then Using .describe() method, check the descriptive statistics of the data as well.I'm not quite sure what I did is right.

from sklearn.datasets import load_irisimport pandas as pdiris = load_iris()df = pd.DataFrame(iris.data, columns=iris.feature_names)print(df.info())print(df.describe())

Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>