1def answer_one():
2 import numpy as np
3 import pandas as pd
4 from sklearn.datasets import load_breast_cancer
5 cancer = load_breast_cancer()
6 data = np.c_[cancer.data, cancer.target]
7 columns = np.append(cancer.feature_names, ["target"])
8 return pd.DataFrame(data, columns=columns)
9
10answer_one()
1from sklearn.datasets import load_iris
2import pandas as pd
3
4data = load_iris()
5df = pd.DataFrame(data.data, columns=data.feature_names)
6df.head()