Pythonで学ぶSoftware Engineeringの原則
Adam Spannbauer
Machine Learning Engineer at Eastman



datacamp@server:~$ pip install numpy
Collecting numpy
100% |████████████████████████████████| 24.5MB 44kB/s
Installing collected packages: numpy
Successfully installed numpy-1.15.4

help(numpy.busday_count)
busday_count(begindates, enddates) `begindates` と `enddates` の間の有効日数を数えます。 `enddates` 当日は含みません。Parameters ---------- begindates : カウント開始日。 enddates : 終了日(カウントに含めない)Returns ------- out : 開始日と終了日の間の有効日数。Examples -------- >>> # 2011年の平日数 ... np.busday_count('2011', '2012') 260
import numpy as np
help(np)
提供機能:
1. 任意の同種要素からなる配列オブジェクト
2. 配列に対する高速な数値演算
3. 線形代数、フーリエ変換、乱数生成
help(42)
class int(object)
| int(x=0) -> integer
| int(x, base=10) -> integer
|
| 数値または文字列を整数に変換。引数なしなら 0。
| x が数値なら x.__int__() を返す。浮動小数点は 0 方向に切り捨て。
Pythonで学ぶSoftware Engineeringの原則