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
- data
- IN
- matplotlib
- numpy
- del
- 최댓값
- pandas
- analizer
- 최솟값
- Python
- 분류 결과표
- 반복문
- string
- 덴드로그램
- DataFrame
- elbow method
- hierarchical_clustering
- sklearn
- wcss
- Dictionary
- count()
- DataAccess
- insert()
- list
- dendrogram
- Machine Learning
- function
- nan
- append()
- len()
Archives
- Today
- Total
개발공부
[Python] List in, count(), len() 본문

리스트 안에, 원하는 값이 있는지 확인하기
- in 을 사용하여 리스트에 해당 데이터가 들어있는지 확인할 수 있다.

count()
- list 내 해당 데이터가 몇개 있는지 알 수 있다.

len()
- 항목의 길이를 구할 수 있다.
- list에 쓰일 경우 리스트에 들어있는 항목들의 전체 갯수를 구할 수 있다.

'Python > Basic' 카테고리의 다른 글
| [Python] Dictionary 특징, 생성, 데이터 액세스 (0) | 2022.04.20 |
|---|---|
| [Python] List sorted(), sort() (0) | 2022.04.20 |
| [Python] List del, remove(), pop() (0) | 2022.04.20 |
| [Python] List 변경, append(), insert(), + (0) | 2022.04.20 |
| [Python] List 특징, 생성, 오프셋으로 값 얻기 (0) | 2022.04.20 |