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を使ったデータ分析、機械学習
6
1
章 
IPython
Python
より優れた
Python
Docstring:
len(object) -> integer
Return the number of items of a sequence or mapping.
?
??
は、
Python
の関数やモジュールが行うことを調べる際の強力なインターフェースです。
1.2.3
Tab
補完を使ったモジュールの調査
オブジェクト、モジュール、名前空間の内容を
Tab
キーを使って自動補完し特定するための機能
IPython
は提供しています。以下の例では、
<TAB>
の箇所で
Tab
キーを押すことを示しています。
1.2.3.1
 オブジェクト内容の
Tab
補完
Python
のオブジェクトはさまざまな属性とメソッドを持ちます。それらは
Python
組み込みの
dir
関数を使ってリストとして得られますが、実際には
Tab
補完を使う方がはるかに簡単です。オ
ブジェクトに対して適用可能な属性のリストを表示するには、オブジェクト名にピ
リオド(
.
)を続
けてから
Tab
キーを押します。
In [10]: L.<TAB>
L.append L.copy L.extend L.insert L.remove L.sort
L.clear L.count L.index L.pop L.reverse
属性名の途中まで入力するとリストを絞り込めます。
Tab
キーを押して入力に一致する属性やメ
ソッドを表示します。
In [10]: L.c<TAB>
L.clear L.copy L.count ...
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