回答編集履歴
1
test
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
import matplotlib.pyplot as plt
|
5
5
|
|
6
6
|
train = pd.read_csv('titanic.csv')
|
7
|
-
sum_survived = train.groupby(["Sex"])[["Survived"]].sum()
|
7
|
+
sum_survived = train.groupby(["Sex"])[["Survived"]].sum().T
|
8
|
-
sns.barplot(
|
8
|
+
sns.barplot(sum_survived)
|
9
9
|
|
10
10
|
plt.show()
|
11
11
|
```
|