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
- 리눅스
- spring
- DBMS
- IntelliJ
- java
- mysql
- analytics4
- docker
- iBatis
- pandas
- Kibana
- Javascript
- github
- SQL
- datagrip
- mssql
- zset
- 자바
- Python
- springboot
- git
- Linux
- PostgreSQL
- oracle
- 티스토리챌린지
- 명령어
- isNotEmpty
- 404error
- 오블완
- 호이스팅
Archives
- Today
- Total
목록drop_duplicates() (1)
hanker

데이터를 다룰 때 중복된 행이 존재하면 분석의 정확성이 떨어진다.pandas에서는 drop_duplicates() 메서드를 사용하여 손쉽게 중복 데이터를 제거할 수 있다. 이번 글에서는 drop_duplicates()의 사용법과 활용 방법에 대해서 알아보자. 1. drop_duplicates() pandas의 drop_duplicates()는 데이터프레임에서 중복된 행을 제거하는 메서드이다.DataFrame.drop_duplicates(subset=None, keep='first', inplace=False, ignore_index=False)subset : 중복 여부를 확인할 열을 지정 (기본 값 None → 모든 열을 기준으로 중복 확인)keep : 중복된 행이 있을 때 남길 행을 선택first (..
Python
2025. 3. 1. 00:27