반응형
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
- google apps script
- Redshift
- django
- Tkinter
- PANDAS
- Apache
- string
- 파이썬
- math
- Github
- GIT
- Java
- SQL
- list
- PySpark
- matplotlib
- PostgreSQL
- array
- numpy
- hive
- Google Excel
- Python
- gas
- Google Spreadsheet
- Excel
- c#
- dataframe
- Kotlin
- Mac
Archives
- Today
- Total
목록DataFrame 크기 반환 (1)
달나라 노트
Python Pandas : shape (DataFrame의 행/열 개수(DataFrame 크기) 반환)
pandas의 shape은 DataFrame에 적용해서 해당 DataFramedml 행/열(row/column) 개수를 tuple의 형태로 반환해줍니다. shape의 syntax는 다음과 같습니다. DataFrame.shape import pandas as pd dict_test = { 'col1': [1, 2, 3, 4, 5], 'col2': ['a', 'b', 'c', 'd', 'e'], 'col3': [6, 7, 8, 9, 10] } df_test = pd.DataFrame(dict_test) print(df_test) print(df_test.shape) -- Result col1 col2 col3 0 1 a 6 1 2 b 7 2 3 c 8 3 4 d 9 4 5 e 10 (5, 3) 위 예시를 보..
Python/Python Pandas
2021. 6. 11. 01:01