반응형
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
- PANDAS
- SQL
- Python
- numpy
- Kotlin
- Presto
- PySpark
- array
- Tkinter
- c#
- Excel
- list
- matplotlib
- gas
- Github
- Apache
- dataframe
- PostgreSQL
- django
- Redshift
- Java
- string
- 파이썬
- math
- Google Excel
- google apps script
- hive
- GIT
- Google Spreadsheet
Archives
- Today
- Total
목록Column (1)
달나라 노트
Python Pandas : columns (DataFrame의 column 정보 불러오기.)
Pandas의 columns는 DataFrame에 존재하는 Column의 정보를 출력해줍니다. import pandas as pddict_test = { 'col1': [1, 2, 3, 4, 5], 'col2': [2, 3, 4, 5, 6],}df_test = pd.DataFrame(dict_test)print(df_test)print(df_test.columns)-- Result col1 col20 1 21 2 32 3 43 4 54 5 6Index(['col1', 'col2'], dtype='object') list() method를 이용해서 column을 list의 형태로 만들 수도 있습니다. import ..
Python/Python Pandas
2024. 6. 28. 19:01