일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SQL
- Kotlin
- matplotlib
- PANDAS
- Excel
- math
- 파이썬
- Google Spreadsheet
- list
- PySpark
- Apache
- Python
- google apps script
- Redshift
- gas
- dataframe
- PostgreSQL
- array
- numpy
- Google Excel
- c#
- Mac
- Java
- django
- hive
- GIT
- Github
- Tkinter
- string
- Today
- Total
목록values (2)
달나라 노트
Syntax dictionary.keys() dictionary에 존재하는 모든 key를 return 합니다. dictionary.values() dictionary에 존재하는 모든 value를 return 합니다. dictionary.items() dictionary를 구성하는 모든 key, value 값을 tuple로 묶어서 return 합니다. 예시를 봅시다. dict_test = { 'key1': 1, 'key2': 2, 'key3': 3 } print(dict_test.keys()) -- Result dict_keys(['key1', 'key2', 'key3']) - dict_test.keys() dict_test에 keys() method를 적용했습니다. 그 결과 값을 보니 dict_keys(..
pandas의 values는 DataFrame에 적용하여 해당 DataFrame을 numpy arrary의 형태로 변환해줍니다. 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.values) -- Result col1 col2 col3 0 1 a 6 1 2 b 7 2 3 c 8 3 4 d 9 4 5 e 10 [[1 'a' 6] [2 'b' 7] [3 'c' 8] [4 'd' 9] [5 'e' 10]] 위 예시를 보면 Test용 ..