Let's dive into analyzing the Titanic dataset! We'll filter, transform, and explore different analyses to understand the factors affecting passenger survival. 🤓
SibSp, Parch, Name, PassengerId, Ticket, Cabin.FamilySize is created to calculate the family size (including the passenger).
## 2. Converting Categorical Columns to Numeric🧮Sex is converted to numeric values: male → 0, female → 1.Embarked is converted to numeric values: C → 0, Q → 1, S → 2.Age).Fare).FamilySize).Sex).Pclass).Embarked).countplot.boxplot and histplot to analyze the relationship between ticket fare and survival probability.
- Low-cost tickets (
Fare < 50).- High-cost tickets (
Fare >= 50).
Finally, let’s wrap it up with pie charts for survival rates by Age and Fare groups. 🥧
NaN) using heatmap.🎉 That's it! We now have a comprehensive Titanic dataset analysis, including visualizations and statistical insights. 💡