This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from pandas import DataFrame | |
from sklearn.datasets import load_iris | |
from sklearn.preprocessing import StandardScaler | |
iris = load_iris() | |
colors = ["blue", "red", "green"] | |
df = DataFrame( | |
data=np.c_[iris["data"], iris["target"]], columns=iris["feature_names"] + ["target"] |