반응형
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 |
Tags
- Excel
- dataframe
- PySpark
- django
- matplotlib
- SQL
- GIT
- Google Spreadsheet
- list
- 파이썬
- numpy
- PostgreSQL
- Redshift
- Apache
- PANDAS
- Kotlin
- google apps script
- hive
- c#
- string
- Google Excel
- Mac
- Github
- gas
- Java
- Python
- array
- math
- Tkinter
Archives
- Today
- Total
목록drop_duplicates (1)
달나라 노트
Python Pandas : drop_duplicates (중복제거, DataFrame 중복값 삭제, DataFrame에서 중복 행 삭제)
DataFrame.drop_duplicates DataFrame의 drop_duplicates는 중복된 값을 가진 행을 제거하고 unique한 행만 남도록 해주는 기능을 제공합니다. Syntax DataFrame.drop_duplicates(subset=[column_names], keep='first'/'last', inplace=True/False, ignore_index=True/False) drop_duplicates에 들어갈 수 인자 중 자주 쓰이는 것들은 같습니다. 1. subset에 명시한 컬럼들 기준으로 중복제거가 진행됩니다. 2. keep='first' -> 중복된 컬럼 중 가장 위쪽의 행을 남기고 그 아래의 행들은 삭제 keep='last' -> 중복된 컬럼 중 가장 아래쪽의 행을 남기..
Python/Python Pandas
2020. 11. 9. 13:53