sohatach's blog

http://github.com/soha

Python

pandas.read_fwf()の使い方

www.oreilly.co.jp Think Stats 第2版を読んでいます。冒頭でサンプルデータを読み込んでいる import nsfg df = nsfg.ReadFemPreg() の中で実行されている pandas.read_fwf() http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_fwf.html …

numpyのargsortの動き

Pythonによるデータ分析入門――NumPy、pandasを使ったデータ処理 を読んでいて、よくわからなかった箇所があったのでメモ。 numpyのargsort()の動きについてです。 http://docs.scipy.org/doc/numpy/reference/generated/numpy.argsort.html >>> x = np.array…

Windows7(64bit)でのPython環境構築

1.Pythonのインストール http://www.python.jp/Zope/download/pythoncoreから「python-2.7.3.amd64.msi」をダウンロードし、Windowsにインストールします。 2.Pythonのパッケージ管理のための追加パッケージのインストール Windows用のバイナリは、http:…