通过读取sklearn自带鸢尾花数据包,实现数据可视化:
代码:
from sklearn import datasets
import pandas as pd
iris_datas = datasets.load_iris()
print(iris_datas.data)
from collections import Counter, defaultdict
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
matplotlib.rcParams['font.sans-serif'] = ['SimHei']
style_list = ['o', '^', 's']