Python Idle
Data Foundations/beginner
Explore the Titanic Dataset
Starting Python runtime...
You've just joined a maritime research team investigating the 1912 Titanic disaster. The lead historian has digitized the passenger manifest into a CSV file and needs a data scientist to extract key statistics. Your mission: load the data, count the passengers, and calculate the overall survival rate.
First, let's load the data and take a look.
How many passengers are in the dataset? Assign the count to num_passengers.
num_passengers equals 891
What fraction of passengers survived? The Survived column is 1 for survived, 0 for not. Assign the result to survival_rate.
survival_rate is approximately 0.3838
Now print your findings.
Results printed correctly