Remrinのpython攻略日記

python3に入門しました。python3についてあれこれとサンプルコードとか。

2017-04-23から1日間の記事一覧

テストデータ(2) アンスコムのカルテット

pythonプログラムの動作テスト用です。 ○アンスコムのカルテット x1 y1 x2 y2 x3 y3 x4 y4 10.0 8.04 10.0 9.14 10.0 7.46 8.0 6.58 8.0 6.95 8.0 8.14 8.0 6.77 8.0 5.76 13.0 7.58 13.0 8.74 13.0 12.74 8.0 7.71 9.0 8.81 9.0 8.77 9.0 7.11 8.0 8.84 11.…

テストデータ(1) 百人一首

pythonプログラムの動作テスト用です。 import pandas as pd url = 'http://python-remrin.hatenadiary.jp/entry/2017/04/23/000000' ## DataFrameのリストを得る。header=0のオプション指定で、最初の行をheader扱い。 fetched = pd.io.html.read_html(url)…