Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- seaborn
- LOC
- bins
- stripplot
- value_counts
- swarmplot
- matplotlib
- STR
- catplot
- violinplot
- df.t
- 클래스
- plot
- 한빛미디어
- 혼공단
- const
- boxplot
- expand=true
- lmplot
- 동적할당
- 포인터
- 혼공학습단
- c++
- class
- histplot
- 구조체
- 열혈c++
- Axis
- 참조자
- 혼공파
Archives
- Today
- Total
목록PIE (1)
yEverything
파이 그래프
%matplotlib inline import pandas as pd df = pd.read_csv('broadcast.csv', index_col=0) df 방송사들의 연도별 시청률이 들어있는 csv파일을 df에서 읽는다. df.loc[2017] loc를 통해 2017 행에 들어있는 데이터들을 본다. 방송사 별 2017년도 시청률이 실행결과 출력된다. df.loc[2017].plot(kind='pie') plot메서드의 kind에 pie를 전달하면, 그러면 이렇게 파이 그래프를 통해 방송사들의 시청률이 원에서 어느 정도의 비율을 차지하는 지를 볼 수 있다.
Data_analysis/Jupyter_notebook
2024. 4. 22. 20:53