plt.scatter()
plt.scatter( x축, y축 )
plt.scatter( ‘x인덱스’, ‘y인덱스’, data = dataframe이름)
으로 산점도를 그릴 수 있다
ex)
plt.scatter(x='Temp', y='Ozone', data= air)
sns.scatterplot()
sns.scatterplot( x축, y축 )
sns.scatterplot( ‘x인덱스’, ‘y인덱스’, data = dataframe이름)
으로 산점도를 그릴 수 있다
ex)
sns.regplot
sns.regplot( x축, y축 )
sns.regplot( ‘x인덱스’, ‘y인덱스’, data = dataframe이름)
으로 산점도를 그릴 수 있다
'파이썬 > pyplot, seaborn' 카테고리의 다른 글
파이썬 기초 seaborn으로 범주기준 숫자 평균 비교하기-barplot() (0) | 2023.09.02 |
---|---|
파이썬 기초 seaborn으로 숫자형 변수 산점도 한 번에 보기-pairplot (0) | 2023.09.02 |
파이썬 기초 pyplot,seaborn - boxplot 그리기와 이해 (0) | 2023.09.02 |
파이썬 기초 Seaborn 으로 밀도함수 그리기=sns.kdeplot() (0) | 2023.09.02 |
파이썬 기초 pyplot과 seaborn으로 히스토그램 그리기 (0) | 2023.09.02 |