반응형
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
- Tkinter
- Google Excel
- numpy
- Python
- list
- Apache
- gas
- array
- matplotlib
- Excel
- hive
- c#
- Redshift
- Github
- PySpark
- django
- PostgreSQL
- Mac
- GIT
- PANDAS
- Kotlin
- 파이썬
- SQL
- dataframe
- math
- string
- Java
- google apps script
- Google Spreadsheet
Archives
- Today
- Total
목록argmin (1)
달나라 노트
Python numpy : argmax, argmin (array에서 가장 큰 값의 index return, array에서 가장 작은 값의 index return)
numpy의 argmax는 주어진 array에서 가장 큰 값을 찾고 이 값의 index를 return합니다. import numpy as np arr_test = np.array([2, 3, 1, 6, 3, 8, 2, 6]) index_of_max_value = np.argmax(arr_test) print(index_of_max_value) -- Result 5 arr_test에 있는 요소 중 가장 큰 값은 8입니다. arr_test에서 8이라는 값에 대한 index는 5입니다. 따라서 argmax는 5를 return합니다. import numpy as np arr_test = np.array([2, 3, 1, 6, 3, 8, 2, 6]) index_of_min_value = np.argmin(arr_..
Python/Python numpy
2022. 1. 23. 23:45