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
- swarmplot
- seaborn
- class
- 열혈c++
- lmplot
- value_counts
- histplot
- 혼공단
- stripplot
- Axis
- df.t
- boxplot
- 포인터
- c++
- violinplot
- plot
- STR
- 혼공학습단
- matplotlib
- catplot
- 혼공파
- const
- 동적할당
- 참조자
- 클래스
- 구조체
- LOC
- 한빛미디어
- expand=true
- bins
Archives
- Today
- Total
목록sum (1)
yEverything
새로운 값 계산하기
df['KBS'] + df['MBC'] + df['SBS'] + df['TV CHOSUN'] + df['JTBC'] + df['Channel A'] + df['MBN']df.sum(axis='columns')방송사들의 연도별 시청률의 총합을 sum메소드를 통해 간단하게 작성할 수 있다.df['Total'] = df.sum(axis='columns')dfTotal column을 추가해서 sum을 한 것을 저장한다.Total column이 추가된 것을 볼 수 있다.df.plot(y='Total')연도별 방송사들의 시청률 총합을 그래프로 본다.방송사들의 시청률들이 점점 떨어지고 있는 것을 알 수 있다. 다른 ott들이 많이 생겨났기 때문에..df['Group 1'] = df.loc[:, 'KBS':'SBS']..
Data_analysis/Google_colaboratory
2024. 5. 3. 17:46