0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Bar graph02

Posted at

引数:X=横軸, hue = 横軸に対して何の件数をカウントするのか


#1. hue有り。PclassとSurvivedの件数を棒グラフで可視化
sns.countplot(x='Pclass', hue='Survived', data=data_train)

#2. hue無し。PclassとSurvivedの件数を棒グラフで可視化
sns.countplot(x='Pclass', data=data_train)

  1. hue有り。
    Survived.png

  2. hue無し
    Pasted Graphic 1.png
    

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?