Plotting Titanic Data#

In this exercise, you can plot data from the passenger list of the Titanic.

First, load the data:

import seaborn as sns
df = sns.load_dataset('titanic')

Solve the following tasks:


Task 1#

Create a bar plot indicating the number of first, second and third class passengers


Task 2#

Plot a histogram of the age column


Task 3#

Let the histogram have 20 bins


Task 4#

Create a boxplot of the age column


Task 5#

Create a scatterplot of fare over age


Task 6#

Create a bar plot that shows the survived vs. dead passengers with one bar group for each gender


Task 7#

Create a heatmap from the correlation matrix of all columns