Skip to Content
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
book

Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

by Jake VanderPlas, 菊池 彰
May 2018
Intermediate to advanced
556 pages
13h 21m
Japanese
O'Reilly Japan, Inc.
Content preview from Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
4
1
章 
IPython
Python
より優れた
Python
1.2.1
?
文字を使ったドキュメントの検索
Python
言語とそのデータサイエンスエコシステムはユーザを念頭に置いているため、その大部
分はドキュメントが占めています。すべての
Python
オブジェクトは docstringと呼ばれる文字列を
持ち、たいていの場合そこにはオブジェクトの簡潔な要約と使い方が記されています。
Python
この情報を表示する組み込みの
help
関数を持っています。例えば、組み込みの
len
関数のドキュメ
ントを見てみましょう。
In [1]: help(len)
Help on built-in function len in module builtins: module builtins
の組み込み関数
len
のヘルプ
len(...)
len(object) -> integer
Return the number of items of a sequence o
r mapping.
シーケンスやマップ内の要素数を返す
インタープリタをどのように使っているかにより、この情報はテキストの一部として表示される
か、またはポップアップウィンドウに表示されます。
オブジェクトのヘルプを表示するのは有益かつ非常に頻繁に行う作業のため、
IPython
ではド
キュメントや関連の情報にアクセスするための簡易表現として
?
文字が使えます。
In [2]: len?
Type: builtin_function_or_method
String ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Jake VanderPlas, 菊池 彰
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9784873118413Other