pandas 산포 행렬

1801 단어 pandas
from sklearn.datasets import load_iris
data = load_iris()  #  iris 
data.keys()
data['data']
data['target']
data['target_names']
data['feature_names']
data['DESCR']
print(data['DESCR']

import pandas as pd

df=pd.DataFrame(data['data'])  #  dataframe
df.columns=[data['feature_names']]  #  

pd.plotting.scatter_matrix(df, alpha=0.7, figsize=(14,8), diagonal='kde')

좋은 웹페이지 즐겨찾기