반응형
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
- dataframe
- matplotlib
- PySpark
- Presto
- PANDAS
- numpy
- google apps script
- 파이썬
- SQL
- hive
- Google Excel
- Google Spreadsheet
- list
- c#
- Python
- Redshift
- array
- Apache
- gas
- math
- Java
- Tkinter
- Excel
- django
- string
- Github
- Kotlin
- PostgreSQL
- GIT
Archives
- Today
- Total
목록python array append (1)
달나라 노트
Python numpy : concatenate (array 합치기)
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를 하나로 ..
Python/Python numpy
2021. 3. 29. 23:45