일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- dataframe
- 삼성소프트웨어멤버십
- keras
- CNN
- pandas
- pip
- GitHub
- LSTM
- mariadb
- javascript
- Numpy
- SciPy
- index
- 알고리즘
- E-P1
- Splunk
- SPL
- install
- ipad
- Button
- imread
- DFS
- Python
- GT-S80
- pycharm
- Series
- mean
- RNN
- Lotto
- synology
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