반응형
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
- Redshift
- Java
- string
- Excel
- matplotlib
- Mac
- gas
- array
- numpy
- dataframe
- hive
- Google Spreadsheet
- Python
- PySpark
- list
- PostgreSQL
- Apache
- Kotlin
- c#
- GIT
- PANDAS
- Tkinter
- Github
- google apps script
- math
- SQL
- Google Excel
- 파이썬
- django
Archives
- Today
- Total
목록memory_usage (1)
달나라 노트
Python Pandas : info(), memory_usage() (DataFrame의 memory 사용량 보기)
DataFrame의 memory 사용량을 보는 대표적인 방법 두가지를 알아보겠습니다. 1. info() method 이용 import pandas as pddf_1 = pd.DataFrame({ 'col1': [1, 1, 2, 2, 2, 3, 3, 3], 'col2': [4, 5, 6, 1, 8, 3, 5, 1], 'valid_yn': [1, 1, 1, 1, 1, 0, 0, 0],})# 주의사항: 데이터가 아주 클 경우, pandas는 성능을 위해 메모리 사용량을 추정치로만 보여줄 수 있습니다.# 이때는 아래처럼 memory_usage='deep' 옵션을 추가해야 정확한 memory 사용량을 보여줍니다.print(df_1.info(memory_usage='deep'))-- ResultR..
Python/Python Pandas
2026. 5. 6. 23:29
