<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 The plot shows that the number of female survivors were significantly more than the male survivors. There were more survivors overall in first class than in any other class.
There were also less survivors overall in third class than in any other class. 
Male survivors were twice in first class than in second or third class. Female survivors in first class were twice that of third class.
Step1:  The plot explains the above facts in a different representation.
Step2:  The plot explains the distribution of survivors across age and class. More red on the lower part of the left swarm indicates that younger passengers in the third class had the least chance to survive. 
More blue spots on the top part of the right swarm meant that elderly passengers from the first class had the best chance to survive. 
Distribution of blue spots on the right swarm is uniform - indicating that, irrespective of age, the first class had better chances of survival.
Step3:  The plot shows that male passengers had the least chance of survival and female passengers had the best chance of survival.
Step4:  Same data with a different representation.
Step5:  Plot showing distribution of fares among classes of travel. A first class ticket is about 4 times a second class ticket. 
A third class ticket costs about 3/4 a second class ticket.
Step6:  The plot shows differences in fares based on the point of embarkation. 
Fares from Cherbourg were the highest, in fact costing about twice as the fares from Southampton and about three times as the fares from Queenstown. 
Fares from Southampton costed twice that of Queenstown.
C = Cherbourg, Q = Queenstown, S = Southampton
<ASSISTANT_TASK:>
Python Code:
sns.barplot(x='Pclass',y='Survived',data=train, hue='Sex')
Explanation: The plot shows that the number of female survivors were significantly more than the male survivors. There were more survivors overall in first class than in any other class.
There were also less survivors overall in third class than in any other class. 
Male survivors were twice in first class than in second or third class. Female survivors in first class were twice that of third class.
End of explanation
sns.barplot(x='Sex',y='Survived',data=train, hue='Pclass')
Explanation: The plot explains the above facts in a different representation.
End of explanation
sns.swarmplot(x='Survived',y='Age',hue='Pclass',data=train)
Explanation: The plot explains the distribution of survivors across age and class. More red on the lower part of the left swarm indicates that younger passengers in the third class had the least chance to survive. 
More blue spots on the top part of the right swarm meant that elderly passengers from the first class had the best chance to survive. 
Distribution of blue spots on the right swarm is uniform - indicating that, irrespective of age, the first class had better chances of survival.
End of explanation
sns.swarmplot(x='Survived',y='Age',hue='Sex',data=train)
Explanation: The plot shows that male passengers had the least chance of survival and female passengers had the best chance of survival.
End of explanation
sns.swarmplot(x='Sex',y='Age',data=train)
Explanation: Same data with a different representation.
End of explanation
sns.pointplot(x='Pclass',y='Fare',data=train)
Explanation: Plot showing distribution of fares among classes of travel. A first class ticket is about 4 times a second class ticket. 
A third class ticket costs about 3/4 a second class ticket.
End of explanation
sns.barplot(x='Embarked',y='Fare',data=train)
Explanation: The plot shows differences in fares based on the point of embarkation. 
Fares from Cherbourg were the highest, in fact costing about twice as the fares from Southampton and about three times as the fares from Queenstown. 
Fares from Southampton costed twice that of Queenstown.
C = Cherbourg, Q = Queenstown, S = Southampton
End of explanation
<END_TASK>