일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Tkinter
- numpy
- PANDAS
- Mac
- Google Spreadsheet
- matplotlib
- SQL
- c#
- PostgreSQL
- Excel
- Apache
- dataframe
- gas
- django
- Java
- 파이썬
- google apps script
- Kotlin
- array
- string
- Github
- math
- PySpark
- list
- hive
- Python
- Redshift
- GIT
- Google Excel
- Today
- Total
목록CONCATENATE (2)
달나라 노트
Hive에서 concat() 함수는 여러 문자열을 하나로 이어주는 역할을 합니다. Syntax concat(str1, str2, str3, ...) concat() 함수는 여러 개의 parameter를 받을 수 있습니다. 그리고 string type parameter를 모두 연결해서 str1str2str3... 의 string을 return합니다. select concat('abcde, '_', '@', 'xyz', '123', '%') ; -- Result abcde_@xyz% 위처럼 모든 문자열을 연결해줍니다. select concat('_', cast(123 as string), 'abc') ; -- Result _123abc concat() 함수에 들어가는 모든 parameter는 string t..
numpy의 concatenate는 list나 array등을 하나의 list또는 array로 합쳐줍니다. import numpy as np x = [1, 2, 3, 4, 5] y = [1, 2, 3, 4, 5] print(np.concatenate([x, y])) -- Result [1 2 3 4 5 1 2 3 4 5] 위 예시는 2개의 list를 합친 것입니다. import numpy as np x = np.array([ [1, 2], [3, 4] ]) y = np.array([ [5, 6], [7, 8], [9, 10] ]) print(np.concatenate([x, y])) -- Result [[ 1 2] [ 3 4] [ 5 6] [ 7 8] [ 9 10]] 위 예시는 2개의 array를 하나로 ..