반응형
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
- PANDAS
- GIT
- PostgreSQL
- django
- SQL
- c#
- math
- Python
- Redshift
- hive
- Google Excel
- PySpark
- string
- matplotlib
- 파이썬
- Google Spreadsheet
- Excel
- Mac
- list
- Kotlin
- numpy
- Github
- gas
- google apps script
- Tkinter
- dataframe
- Apache
- Java
- array
Archives
- Today
- Total
목록누락값 (1)
달나라 노트
Python Pandas : notna (누락값 여부 체크하기)
Python에 있는 notna method는 dataframe이나 seires에 적용하여 dataframe이나 series에 있는 값들이 누락값(NaN, null 등)인지를 체크합니다. 누락값이라면 False를 누락값이 아닌 어떠한 정상적인 값이 입력되어있다면 True를 반환합니다. import pandas as pd import numpy as np dict_test = { 'col1': [1, np.NaN, 3, 4, np.NaN], 'col2': ['a', 'b', 'c', 'd', 'e'] } df_test = pd.DataFrame(dict_test) # 1 print(df_test) print(df_test.notna()) # 2 sr_test = df_test['col1'] # 3 print..
Python/Python Pandas
2021. 3. 18. 20:08