분류 전체보기103 Data Visualization - Distributions https://www.kaggle.com/code/alexisbcook/distributions Distributions Explore and run machine learning code with Kaggle Notebooks | Using data from Interesting Data to Visualize www.kaggle.com Histograms # Histogram sns.histplot(iris_data['Petal Length (cm)']) Petal Length를 x 축으로 잡고 길이에 따른 count 값을 히스토그램으로 나타낸다. Density plots 밀도 함수. 쉽게 스무스한 히스토그램이라 생각하면 된다. # KDE plot sns.kdeplot(data=iris_data['P.. 2024. 3. 23. Data Visualization - Scatter Plots https://www.kaggle.com/code/alexisbcook/scatter-plots Scatter Plots Explore and run machine learning code with Kaggle Notebooks | Using data from Interesting Data to Visualize www.kaggle.com Scatter plots sns.scatterplot(x=insurance_data['bmi'], y=insurance_data['charges']) sns.scatterplot을 통해 scatter 생성. 인자는 x, y축 설정 sns.regplot : 두 관계의 상관도를 확인하기 위해 회귀선 또는 데이터에 가장 적합한 선을 추가. sns.regplot(x=insur.. 2024. 3. 21. Data Visualization - Bar Charts and Heatmaps https://www.kaggle.com/code/alexisbcook/bar-charts-and-heatmaps Bar Charts and Heatmaps Explore and run machine learning code with Kaggle Notebooks | Using data from Interesting Data to Visualize www.kaggle.com Bar chart # Set the width and height of the figure # 가로 세로 설정 plt.figure(figsize=(10,6)) # Add title # 제목 설정 plt.title("Average Arrival Delay for Spirit Airlines Flights, by Month") # Bar.. 2024. 3. 21. Data Visualization - Line Charts https://www.kaggle.com/code/alexisbcook/line-charts Line Charts Explore and run machine learning code with Kaggle Notebooks | Using data from Interesting Data to Visualize www.kaggle.com Plot the data 각 곡의 하루 글로벌 스트리밍을 보며주는 line chart # Line chart showing daily global streams of each song sns.lineplot(data=spotify_data) - sns.lineplot : line chart 생성 - data - spotify_data : 차트 생성에 사용되는 데이터를 선택한다.. 2024. 3. 21. 이전 1 2 3 4 5 6 ··· 26 다음 728x90