반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

AICE.DATA.VISUALIZITION 본문

[CERTIFICATION]/AICE

AICE.DATA.VISUALIZITION

givemebro 2023. 7. 26. 02:27
반응형
시각화Permalink
라이브러리 import
import matplotlib.pyplot as plt
%matplotlib inline
Bar Chart
df[’gender’].value_counts().plot(kind=’bar’)
Object 컬럼 하나씩 가져와서 Bar 차트 그리기

object_list = df.select_dtypes('object').columns.values

for col in object_list:
	df[col].value_counts().plot(kind='bar')
	plt.title(col)
	plt.show()
Histgram
import seaborn as sns
sns.histplot(data=df, x=’tenure’, hue=’Churn’)

곡선 히스토그램 : sns.kdeplot(data=df, x=’tenure’, hue=’Churn’)

Countplot : sns.countplot(data=df, x=’MultipleLines’, hue=’Churn’)

heatmap : sns.heatmap(df[[‘tenure’,’MonthlyCharges’,’TotalCharges’]].corr(), annot=True)

boxplot : sns.boxplot(data=df, x=’Churn’, y=’TotalCharges’)

반응형

'[CERTIFICATION] > AICE' 카테고리의 다른 글

AICE.REF  (0) 2023.07.26
AICE.DNN  (0) 2023.07.26
AICE.NORMALIZITION  (0) 2023.07.26
AICE.ML  (0) 2023.07.26
AICE.DATA.PREPROCESSING  (0) 2023.07.26
AICE.DATA.PREPROCESSING  (0) 2023.07.26
Comments