반응형
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
- c#
- math
- array
- Google Excel
- list
- Apache
- Github
- matplotlib
- Excel
- Mac
- string
- GIT
- dataframe
- hive
- Kotlin
- PySpark
- django
- google apps script
- Redshift
- PANDAS
- gas
- numpy
- PostgreSQL
- 파이썬
- Python
- Java
- Google Spreadsheet
- Tkinter
- SQL
Archives
- Today
- Total
목록empty (1)
달나라 노트
Python Pandas : empty (Series 또는 DataFrame이 비어있는지 확인하기.)
pandas의 empty는 Series 또는 DataFrame이 비어있으면 True를 return합니다. 반대로 비어있지 않으면 False를 return합니다. import pandas as pd dict_test = { } df_test = pd.DataFrame(dict_test) print(df_test) print(df_test.empty) -- Result Empty DataFrame Columns: [] Index: [] True 위 예시는 비어있는 DataFrame인 df_test를 만들고 df_test의 empty를 적용한 결과입니다. DataFrame에 column도 row도 아무것도 없으니 비어있죠. 따라서 True가 return됩니다. import pandas as pd dict_te..
Python/Python Pandas
2022. 8. 22. 19:21