Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sklearn.utils.bunch to dataframe

from sklearn.datasets import load_iris
import pandas as pd

data = load_iris()
df = pd.DataFrame(data.data, columns=data.feature_names)
df.head()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataframe
ADD COMMENT
Topic
Name
8+9 =