======
- Increased level of sophistication for Type II analysis
- Linked 2+ datasets from distinct sources
- Tested proposed hypothesis
- Prior approval taken from instructor for project topic
- Modified code on the basis of constructive feedback received from peers on "Presentation Day"
- Included doctests and unit-tests with 96 % code coverage
- All nine functions includes docstrings
- Functions run with different input parameters without hard-coded vales (check def names_url() which generates output) for the function (def get_tree()) as it's input.
- Hypothesis testing & Conclusion mentioned in ( README.md )
- Report from this program uploaded on Github (Superhero Report.txt)
- Total lines of code: 600+
======
The important files to run the program are in the Data folder.
======
Marvel and DC are the most famous and prominent names for publishing superhero based movies and related media imprints. The fans have argued since decades about the superiority of characters from each of the comic house and which production house is better. Is it DC Comics or Marvels?
The project is all about finding which one is better?
======
I have assumed the below hypothesis to conduct the analysis:
-
Captain America and Iron Man are the most powerful duos in the superhero leagues from all the production houses.
-
Earnings of superhero movies are not affected by the eye color, height, weight and hair color of superheros.
-
Marvel is not popular than DC Comics.
-
Human superheros are not popular as compared to non-human superheros.
======
Que 1.
Top 12 superheros (6+6) from both the publishers on the basis of comic appearances:
Superhero Name | Publisher | Appearances |
---|---|---|
Batman | DC Comics | 3093.0 |
Superman | DC Comics | 2496.0 |
Wonder Woman | DC Comics | 1231.0 |
Aquaman | DC Comics | 1121.0 |
Alan Scott | DC Comics | 969.0 |
Alfred Pennyworth | DC Comics | 930.0 |
Spider-Man | Marvel Comics | 4043.0 |
Captain America | Marvel Comics | 3360.0 |
Wolverine | Marvel Comics | 3061.0 |
Iron Man | Marvel Comics | 2961.0 |
Hulk | Marvel Comics | 2017.0 |
Jean Grey | Marvel Comics | 1107.0 |
1.a) Find six pairs of two characters who appeared most in comics(3 pairs Marvel + 3 Pairs DC)
1.b) Compare their combined power levels and check who wins.
Superhero Pair Name | Publisher | Combined Power |
---|---|---|
Superman & Alan Scott | DC Comics | 965 |
Spider-Man & Jean Grey | Marvel Comics | 937 |
Wonder Woman & Aquaman | DC Comics | 898 |
Wolverine & Iron Man | Marvel Comics | 861 |
Captain America & Hulk | Marvel Comics | 780 |
Batman & Alfred Pennyworth | DC Comics | 486 |
Que 2.
2.a) I will group the top 5 movies from Marvel and DC and check publishing house earned more.
Publisher | Earnings(Top 5 movies)($) |
---|---|
Marvel Comics | $ 2,673,994,705 |
DC Comics | $ 2,061,358,541 |
2.b) I will group all the movies from respective publishing house and then check the total amount earned by both the publishing houses.
Publisher | Earnings(Top 5 movies)($) |
---|---|
Marvel Comics | $ 10,096,393,849 |
DC Comics | $ 3,357,798,524 |
Que 3. Are non-human superheros not more popular as compared to mutant superheros. 3.a) The count of number of human and mutant superheros for both the publishers.
Publisher | Race | Combined Power |
---|---|---|
DC Comics | Human | 13 |
Mutant | 50 | |
Marvel Comics | Human | 25 |
Mutant | 107 |
3.b) The count of number of human and mutant superheros no matter who was their publisher.
Total number of Humans and Mutants in the final dataframe:
Race | Count |
---|---|
Human | 38 |
Mutant | 157 |
Que 4. Find the statistics of characters with different hair color, eye color, height and weight.
Publisher | Eye Color | Hair Color | Count |
---|---|---|---|
Marvel Comics | Brown | Black | 775 |
Brown | Brown | 621 | |
Blue | Blond | 599 | |
DC Comics | Brown | Black | 429 |
Marvel Comics | Blue | Black | 361 |
Que 5. Superheros with what hair color and eye color are more prone to live and die?
Alive | Eye Color | Hair Color | Count |
---|---|---|---|
Living | Brown | Black | 932 |
Blue | Blond | 689 | |
Brown | Brown | 673 | |
Blue | Black | 431 | |
Blue | Black | 361 | |
Blue | Brown | 309 | |
Deceased | Brown | Brown | 273 |
Brown | Black | 272 | |
Blue | Blond | 241 | |
Blue | Black | 183 |
Que 6. What their race has to do with their Intelligence, Strength, Speed, Total ?
Publisher | Race | Intelligence | Strength | Speed | Total(Including Rest) |
---|---|---|---|---|---|
DC Comics | Human | 63 | 12 | 27 | 217 |
Mutant | 63 | 62 | 35 | 365 | |
Marvel Comice | Human | 63 | 19 | 33 | 284 |
Mutant | 63 | 28 | 27 | 298 |
Que 7. How are height and weight distributed for characters in different publishing house?
Publisher | Race | Median Height(cms) |
---|---|---|
DC Comics | Human | 185.0 |
Mutant | 180.0 | |
Marvel Comics | Human | 183.0 |
Mutant | 183.0 |
Publisher | Race | Median Weight(kgs) |
---|---|---|
DC Comics | Human | 86.0 |
Mutant | 79.0 | |
Marvel Comics | Human | 83.0 |
Mutant | 81.0 |
Que 8. How many movie appearances does the characters with most comic appearances have?
Superhero Name | Total Movie Appearances |
---|---|
Batman | 16 |
Spider-Man | 16 |
Super-Man | 13 |
Captain America | 9 |
Wonder Woman | 6 |
Aquaman | 4 |
Iron Man | 4 |
Wolverine | 3 |
======
Correlation plot tells you about how strongly two variables are related to each other. Closer the value to 1.0, greater would be the relation between the two variables.
For eg., to find the correlation between the Durability and Strength, note the box where they both are intersecting. The value for the above example is 0.79 which shows that the two variables are strongly correlated as compared to others.
====== Conclusion:
Hypothesis 1: Captain America and Iron Man are the most powerful duos in the superhero leagues from all the production houses.
Result: Rejected
Hypothesis 2: Earnings of superhero movies are not affected by the eye color, height, weight and hair color of superheros.
Result: Rejected
Reason: There are more characters with Blue eyes, Black and Brown hairs. Thus, greater number signifies popularity which should affect movies earnings based on superhero's attractiveness.
Hypothesis 3: Marvel is not popular than DC Comics.
Result: Rejected
Reason: In terms of earnings of top five movies or all the movies from both the production houses, Marvel clearly beats DC Comics.
Hypothesis 4: Human superheros are not popular as compared to non-human superheros.
Result: True
Reason: As there are more superhero movies with mutant superheros produced based on answer 6 and answer 7, I can conclude that Human superheros are definitely not popular as compared to non-human(mutant) superheros.
======
From the analysis, I can say that Marvel Comics is definitely better than DC Comics.