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を使ったデータ分析、機械学習
18
1
章 
IPython
Python
より優れた
Python
# up (../) to the current directory (./)
osx:myproject $ ls
myproject.txt
mv =
ファイルの移動。ここでは
1
つ上のディレクトリから
myproject.txt
を現在のディレクトリに移動する
これはすべて、アイコンやメニューをクリックするのではなくコマンドを入力することで、慣
れ親しんだ操作(ディレクトリ構造のナビゲート、ディレクトリの作成、ファイルの移動など)を
簡潔に行う方法にすぎないことに注意してください。いくつかのコマンド(
pwd
ls
cd
mkdir
cp
)を使うと、最も一般的なファイル操作の多くを行うことができます。シェルのアプローチが本
当に強力になるのは、これらの基本を超えたときです。
1.6.2
IPython
からのシェルコマンド実行
コマンドラインで動作するすべてのコマンドは
!
を前置することで
IPython
から実行できます。
例えば、
ls
pwd
echo
コマンドは次のように実行できます。
In [1]: !ls
myproject.txt
In [2]: !p
wd
/home/jake/projects/myproject
In [3]: !echo "printing from the shell"
printing from the shell
1.6.3
 シェルとの値の受け渡し
シェルコマンドは
IPython
から呼び出せるだけではなく、
IPython ...
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