일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- javascript
- pip
- pandas
- ipad
- Lotto
- pycharm
- E-P1
- 알고리즘
- Button
- keras
- Series
- index
- Splunk
- LSTM
- DFS
- imread
- SciPy
- CNN
- Numpy
- 삼성소프트웨어멤버십
- synology
- SPL
- GitHub
- GT-S80
- Python
- RNN
- install
- dataframe
- mean
- mariadb
- Today
- Total
목록isin (2)
잠토의 잠망경
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로..
mean(), min(), max(), std() import pandas as pd from collections import OrderedDict s = pd.DataFrame({ 'Address':['Seoul','Asan'], 'occupation':['doctor','IT'], 'Born':['1981-01-10','1999-11-02'], 'Died':['2100-01-10','2099-01-02'], 'Age':[40,20]}, index=['a','b'], columns=[..