반응형
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 |
Tags
- list
- PANDAS
- c#
- google apps script
- Tkinter
- Python
- math
- string
- Excel
- Java
- Google Spreadsheet
- hive
- Redshift
- Mac
- numpy
- Google Excel
- PostgreSQL
- Kotlin
- gas
- matplotlib
- Github
- array
- django
- dataframe
- Apache
- PySpark
- GIT
- SQL
- 파이썬
Archives
- Today
- Total
목록numpy concatenate (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