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
- c++
- 포인터
- const
- catplot
- 동적할당
- 혼공파
- expand=true
- 열혈c++
- violinplot
- histplot
- df.t
- bins
- seaborn
- 참조자
- class
- matplotlib
- STR
- stripplot
- value_counts
- boxplot
- Axis
- plot
- 구조체
- lmplot
- swarmplot
- 클래스
- 한빛미디어
- 혼공단
- LOC
- 혼공학습단
Archives
- Today
- Total
목록contains (1)
yEverything
문자열 필터링
import pandas as pddf = pd.read_csv('albums.csv', encoding='latin1')df.head(20)albums.csv파일을 읽는다.여러 앨범들이 있는 것을 알 수 있다.df['Genre'].unique()어떤 장르들이 있는지 살펴본다.엄청 많다..................df[df['Genre'] == 'Blues']장르가 Blues인 것만 필터링해본다.근데 이러면 Blues가 장르에 첫 번째로 들어있는 경우들만 나온다.df[df['Genre'].str.contains('Blues')]이렇게 하면 Blues가 포함된 모든 경우들을 알 수 있다. 굳이 첫 번째로 들어가 있지 않은 경우들도!!위와 같이 Blues가 첫 번째로 들어가 있지 않은 경우들도 나오는 것..
Data_analysis/Google_colaboratory
2024. 5. 3. 18:07