일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Python
- Numpy
- Lotto
- synology
- dataframe
- SciPy
- 알고리즘
- GitHub
- index
- Series
- imread
- pandas
- Splunk
- E-P1
- LSTM
- keras
- Button
- mean
- RNN
- GT-S80
- pycharm
- 삼성소프트웨어멤버십
- ipad
- SPL
- DFS
- install
- CNN
- mariadb
- pip
- javascript
Archives
- Today
- Total
잠토의 잠망경
[numpy] np.power() 본문
np.power()
import numpy as np
x1 = range(6)
print(np.power(x1,3))
#[0,1,8,27,64,125]
x2 = [1.0, 2.0, 3.0, 3.0, 2.0,1.0]
print(np.power(x1,x2))
#[0., 1., 8., 27., 16., 5]
제곱, a^b
Comments