(2順目)
レシピ8.4
ここからデータをdownloadしてくる。 https://github.com/ipython-books/cookbook-data
(3項) 全ての列を列挙
for c in df:
print (c)
print(df.shape)
Insult
Date
Comment
(3947, 3)
一部を表示
Insult Date Comment
0 1 20120618192155Z "You fuck your dad." 機械翻訳の結果:あなたは、おとうさんとセックスします
1 0 20120528192215Z "i really don't understand your point.\xa0 It ...
2 0 NaN "A\\xc2\\xa0majority of Canadians can and has ...
3942 1 20120502172717Z "you are both morons and that is never happening"機械翻訳の結果:あなたは両方のバカです、そして、それは決して起こっていません
(9項)
屈辱的な単語のリスト、一部にそういう言葉があるが全体的には普通の言葉のようだ。精度はあまりよくないのでは?
you,your,are,the,to,and,of,that,it,is,in,like,on,have,for,not,just,re,an,xa0,idiot,what,get,so,all,with,be,fuck,up,go,this,don,do,but,stupid,or,as,no,know,can,if,ass,who,because,about,back,bitch,dumb,little,me