Skip to content

Instantly share code, notes, and snippets.

View conorposullivan's full-sized avatar

Conor O'Sullivan conorposullivan

View GitHub Profile
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"]