import

import seaborn as sns
import matplotlib.pyplot as plt

파이썬 lmplot 시각화

차원, logistic 조정 가능

sns.lmplot(x="hhs_region", y="h1n1_concern", data=train,
           order=2, ci=None, scatter_kws={"s": 80});

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0f3a1031-4507-4678-917c-418cf8e3d201/Untitled.png

sns.lmplot(x="behavioral_face_mask", y="vacc_h1n1_f", data=train,
           logistic=True, y_jitter=.03);

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3b7643a3-9c17-4fec-8262-7e54a91899fc/Untitled.png

pairplot 시각화

두개의 그림을 그림

sns.pairplot(train, x_vars=["behavioral_wash_hands", "behavioral_face_mask"], y_vars=["vacc_h1n1_f"],
             hue="sex_i", height=5, aspect=.8, kind="reg");

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a1506233-153e-4911-bb40-aaff32fd1905/Untitled.png