반응형
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
- Excel
- SQL
- django
- Java
- matplotlib
- Mac
- dataframe
- c#
- Github
- array
- Tkinter
- Redshift
- gas
- PostgreSQL
- Apache
- 파이썬
- PySpark
- Kotlin
- Google Excel
- math
- list
- Python
- numpy
- GIT
- Google Spreadsheet
- hive
- string
- google apps script
- PANDAS
Archives
- Today
- Total
목록NaN 값 삭제 (1)
달나라 노트
Python Pandas : dropna (NaN value가 있는 row/column 제거하기)
dropna function은 DataFrame에서 NaN value가 존재하는 행(row) 또는 열(column)을 제거해줍니다. dropna의 syntax는 다음과 같습니다. DataFrame.dropna(axis=0/1, how='any'/'all', subset=[col1, col2, ...], inplace=True/False) dropna에 들어갈 수 있는 parameter들은 더 많지만 일단 대표적인 것들만 보겠습니다. axis = 0/1 or 'index'/'columns' 0 or 'index' -> NaN 값이 포함된 row를 drop (default 값입니다.) 1 or 'columns' -> NaN 값이 포함된 column을 drop how = 'any'/'all' any -> ro..
Python/Python Pandas
2021. 6. 8. 17:02