An interactive data visualization web app built with Python, Pandas, Seaborn, Matplotlib, and Streamlit. It provides insights into passenger demographics and survival patterns from the Titanic dataset.
This project visualizes the Titanic dataset from Kaggle using interactive charts and graphs. It aims to help users understand how various factors like gender, passenger class, and age affected survival during the Titanic disaster.
- View raw Titanic dataset
- Countplot of total survivors
- Survival comparison by gender
- Age distribution of passengers
- Survival based on ticket class
- Survival Count – Visualizes how many survived vs not.
- Survival by Gender – Gender-wise survival comparison.
- Age Distribution – Histogram and KDE plot of passenger ages.
- Survival by Class – Shows how class (1st/2nd/3rd) affected survival.
- Pandas: For data cleaning and loading CSV.
- Matplotlib & Seaborn: For visualizations.
- Streamlit: To build interactive web UI.
Download the dataset from Kaggle Titanic Competition.
Place the train.csv
file in the root directory of this project.
Follow the steps below to clone and run the project locally:
git clone https://github.com/yourusername/titanic-visualization-app.git
cd titanic-visualization-app
streamlit run app.py