
251
11.2 pandas を使ったプロット
<class 'pandas.core.frame.DataFrame'>
Int64Index: 858 entries, 0 to 857
Data columns (total 12 columns):
award_age 858 non-null int64
category 858 non-null object
country 858 non-null object
date_of_birth 858 non-null object
date_of_death 559 non-null object
gender 858 non-null object
link 858 non-null object
name 858 non-null object
place_of_birth 831 non-null object
place_of_death 524 non-null object
text 858 non-null object
year 858 non-null int64
dtypes: int64(2), object(10)
memory usage: 87.1+ KB
出生日と死亡日の列には、標準的な
pandas
データ型の
object
があります。日付を比較する
には、日時型の
datetime64
に変換します。
pandas
の
to_datetime
(
http://pandas.pydata.org/
pandas-docs/stable/generated/pandas.to_datetime.html ...