[시각화] 리스트 두개로 pairplot()

최대 1 분 소요

#산의 높이와 온도의 상관관계 분석
import pandas as pd
import seaborn as sns

height = [100,200,300,400,500,600,700,800,900]
temperature = [18.0, 17.5, 17, 16.5, 15, 14.5, 13, 12, 11]
plt.scatter(height, temperature)
plt.show()
**zip_list = list(zip(height, temperature))
df = pd.DataFrame(zip_list, columns = ['height','temperature'])**
sns.pairplot(data=df, kind='reg')
plt.show()

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5c639f10-3fe0-4e50-8034-c62285ce4093/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/394a9881-2c4c-471e-8860-5e2b4cea7286/Untitled.png