18. 応用:ChatGPTを使ったデータ分析
データ前処理のケース
18
対象データ:タイタニック号の乗船名簿(公開)
Passeng
erId
Surviv
ed
Pclass
(等級) Name Sex Age
SibSp
(兄弟配偶者数)
Parch
(親子数) Ticket Fare Cabin
Embark
ed
1 0 3
Braund,
Mr.
Owen
Harris
male 22.0 1 0
A/5
21171
7.2500 NaN S
2 1 1
Cumings
, Mrs.
John
Bradley
(Florenc
e Briggs
Thayer)
female 38.0 1 0
PC
17599
71.2833 C85 C
3 1 3
Heikkine
n, Miss.
Laina
female 26.0 0 0
STON/O
2.
3101282
7.9250 NaN S
4 1 1
Futrelle,
Mrs.
Jacques
Heath
(Lily
May
Peel)
female 35.0 1 0 113803 53.1000 C123 S
5 0 3
Allen,
Mr.
William
Henry
male 35.0 0 0 373450 8.0500 NaN S
Copyright@ Curio-city LLC