
199
9.3 インデックスと pandas のデータ選択
例
9-2
DataFrame
の最初の
5
行の抽出
df.head()
Out:
born_in category d ate_of_bi..
0 Physiology or Medicine 8 October 1..
1 Bosnia and Herzegovina Literature 9 October 1.. #
❶
2 Bosnia and Herzegovina Chemistry July 23, 1..
3 Peace ..
4 Peace 26 July 1..
date_of_death gender ..
0 24 March 2002 male http://en.wikipedia.org/wiki/C%C3%A..
1 13 March 1975 male http://en.wikipedia.org/wi..
2 1998-01-07 male http://en.wikipedia.org/wiki/Vl.. #
❷
3 NaN None http://en.wikipedia.org/wiki/Institu..
4 6 October 1912 male http://en.wikipedia.org/wiki/Auguste..
name country \
0 César Milstein Argentina
1 Ivo Andric * #
❶
2 Vladimir Prelog *
3 Institut de ...