Titanic Dataset
The Titanic dataset contains information about passengers on the Titanic, including whether they survived or not. It includes features such as whether the passenger survived, ticket class, gender of the passenger, age of the passenger, number of siblings/spouses aboard the Titanic, number of parents/children aboard the Titanic, passenger fare, and port of embarkation.
Advantages: Rich dataset with various features, suitable for survival prediction and demographic analysis.
Disadvantages: Contains missing values, historical dataset may not represent modern demographics.
Features and Characteristics
- survived: Whether the passenger survived (0 = No, 1 = Yes) (categorical)
- pclass: Ticket class (1st, 2nd, 3rd) (categorical)
- sex: Gender of the passenger (categorical)
- age: Age of the passenger (numerical)
- sibsp: Number of siblings/spouses aboard the Titanic (numerical)
- parch: Number of parents/children aboard the Titanic (numerical)
- fare: Passenger fare (numerical)
- embarked: Port of embarkation (C = Cherbourg, Q = Queenstown, S = Southampton) (categorical)
How to load Titanic Dataset?
titanic = sns.load_dataset("titanic")
print(titanic.head())
survived | pclass | sex | age | sibsp | parch | fare | embarked |
---|---|---|---|---|---|---|---|
0 | 3 | male | 22.0 | 1 | 0 | 7.25 | S |
1 | 1 | female | 38.0 | 1 | 0 | 71.3 | C |
1 | 3 | female | 26.0 | 0 | 0 | 7.92 | S |
1 | 1 | female | 35.0 | 1 | 0 | 53.1 | S |
0 | 3 | male | 35.0 | 0 | 0 | 8.05 | S |
Seaborn Datasets For Data Science
Seaborn, a Python data visualization library, offers a range of built-in datasets that are perfect for practicing and demonstrating various data science concepts. These datasets are designed to be simple, intuitive, and easy to work with, making them ideal for beginners and experienced data scientists alike.
In this article, we’ll explore the different datasets available in Seaborn, their characteristics, advantages, and disadvantages, and how they can be used for various data analysis and visualization tasks.
Seaborn Datasets For Data Science
- 1. Tips Dataset
- 2. Iris Dataset
- 3. Penguins Dataset
- 4. Flights Dataset
- 5. Diamonds Dataset
- 6. Titanic Dataset
- 7. Exercise Dataset
- 8. MPG Dataset
- 9. Planets Dataset