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 |
Tags
- pandas
- del
- list
- 최솟값
- len()
- matplotlib
- string
- Python
- function
- count()
- sklearn
- wcss
- IN
- DataFrame
- Machine Learning
- DataAccess
- numpy
- 최댓값
- 반복문
- 덴드로그램
- append()
- dendrogram
- 분류 결과표
- Dictionary
- hierarchical_clustering
- data
- nan
- elbow method
- insert()
- analizer
Archives
- Today
- Total
목록count() (2)
개발공부
리스트 안에, 원하는 값이 있는지 확인하기 - in 을 사용하여 리스트에 해당 데이터가 들어있는지 확인할 수 있다. count() - list 내 해당 데이터가 몇개 있는지 알 수 있다. len() - 항목의 길이를 구할 수 있다. - list에 쓰일 경우 리스트에 들어있는 항목들의 전체 갯수를 구할 수 있다.
Python/Basic
2022. 4. 20. 17:46
문자열의 갯수 파악 - count() - 찾는 문자열이 몇개 있는지 알려준다. >>> poem.count('year') 2 >>> poem.count('banana') 0 in - 문자열내 해당 단어가 있는지 확인할 수 있다. >>> 'year' in poem True >>> 'banana' in poem False startwith('a') - 문자열이 a로 시작하면 True를 반환, 아닐시 False를 반환한다. >>> file = '2022_05_01_report_3.xlsx' >>> file.startswith('2022') True
Python/Basic
2022. 4. 20. 17:34