Skip to content

Busra-Deveci/marvel-character-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Marvel Heroes & Villains Analysis πŸ¦Έβ€β™‚οΈπŸ¦Ήβ€β™€οΈ

This repository contains an Exploratory Data Analysis (EDA) of a subset of characters from the Marvel Universe. The analysis focuses on character roles, affiliations, and powers to uncover patterns and insights in the dataset.

πŸ“Œ Introduction

This project analyzes a dataset of 45 Marvel characters, each described by the following attributes:

  • Character
  • Real Name
  • Affiliation
  • Powers
  • Role (Hero, Villain, Antihero)
  • Power Level

The goal is to explore the relationships between these attributes, especially focusing on the distribution of roles and the prevalence of specific powers among characters.

🧾 Dataset Overview

  • Total Rows: 45
  • Columns: 6
  • Missing Values: None

Key Statistics:

  • Unique characters: 44 (Black Widow appears twice)
  • Unique real names: 41 (Carol Danvers appears twice)
  • Most common role: Hero (35 characters)
  • Most common affiliation: Avengers (23 characters)
  • All characters have a power level of Low

πŸ“Š Visualizations & Findings

🦸 Role Distribution

  • Insight: The dataset is hero-dominated:
    • Heroes: 35
    • Villains: 8
    • Antiheroes: 2
  • Visualization: Bar plot displaying character count by role.
  • Interpretation: Reflects Marvel's narrative emphasis on heroes.

⚑ Powers Analysis

  • Insight: Certain powers are consistently popular among characters.
  • Visualization: Bar plot showing the most frequently appearing powers.
  • Interpretation: Powers like superhuman strength appear across many heroes and villains, showing recurring themes in character design.

πŸš€ Future Work

  • Further explore affiliations (e.g., group distribution like Avengers, X-Men).
  • Build a machine learning model to predict roles based on powers or affiliations.
  • Perform a network analysis to visualize relationships and team dynamics.

βœ… Conclusion

This analysis revealed that the Marvel Universe in this dataset is highly centered around heroes, with common traits and superpowers recurring among characters. It lays the foundation for deeper analysis, including predictive modeling and character network mapping.

πŸ“‚ Project Structure

  • marvel_analysis.ipynb: Main notebook containing all EDA, visualizations, and insights.
  • dataset.csv: Cleaned dataset used in the notebook (if publicly shared).
  • Visualizations are embedded directly in the notebook.

πŸ“Ž View the Full Notebook on Kaggle

πŸ‘‰ Marvel Heroes vs Villains Analysis on Kaggle

🧠 Technologies Used

  • Python
  • Pandas
  • Matplotlib & Seaborn
  • Plotly
  • Jupyter Notebook

About

Marvel character analysis using Python, focusing on roles and superpowers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors