| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- Series
- Splunk
- index
- imread
- CNN
- LSTM
- Button
- synology
- 삼성소프트웨어멤버십
- pandas
- GitHub
- RNN
- SciPy
- E-P1
- SPL
- Python
- pycharm
- ipad
- DFS
- Lotto
- keras
- GT-S80
- mean
- mariadb
- install
- javascript
- pip
- 알고리즘
- dataframe
- Numpy
Archives
- Today
- Total
목록ndarray (1)
잠토의 잠망경
[numpy] np.isin(), np.where() index 찾아보기
github np.isin() 내가 찾는게 있는지 여부를 각 index 위치에 True, False 형태로 알려줌 1,4,6,10이 포함되어 있는지를 찾고 싶을때 사용한다. from numpy import ndarray import numpy as np datas = np.asarray([1,2,3,4,5,6,7]) # 이 값들의 포함 여부를 알려달라. iwantit = np.asarray([1,4,6,10]) # 해당 ndarray의 index 위치에 포함 여부가 표시된다. print(np.isin(datas, iwantit)) #[ True False False True False True False] np.where() 내가 원하는 조건이 맞으면 index 위치를 알려준다. 포함 여부를 index로..
공부/Python
2020. 4. 28. 17:52