
197
9.2 データの調査
スクレイピングしたダーティデータを
DataFrame
に入れたので、得られたデータの概観を調べて
みましょう。
9.2
データの調査
pandas
の
DataFrame
には、含まれるデータの概要が手軽にわかるメソッドやプロパティがいく
つかあります。最も一般的なのは
info
で、列ごとのデータエントリ数の整理された要約を示しま
す。
df.info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 1052 entries, 0 to 1051
Data columns (total 12 columns):
born_in 1052 non-null object
category 1052 non-null object
date_of_birth 1044 non-null object
date_of_death 1044 non-null object
gender 1040 non-null object #
欠損フィールド
link 1052 non-null object
name 1052 non-null object
country 1052 non-null object
place_of_birth 1044 non-null object
place_of_death 1044 non-null object
text 1052 non-null object
year 1052 non-null int64
dtypes: ...