EDA on IMDB Movies Dataset
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Hi this is from an EDA ABOUT imdb dataset on Kaggle. I'm trying to understand what the person did.
I know that stars 1 through 4 are col names which contain the name of actors.
Why do we have the name axs? Why is ax=0 and why is that important and where does it come about later in the code? What does the .sum and reset_index do?
Also what is the third line doing? Please explain everything and if you can show alternative code that might be easier to understand
![EDA on IMDB Movies Dataset
Notebook Data Logs Comments (5)
Appearances of Stars in top meta_scores
31:
stars=['Star1','Star2','Star3','Star4']
fig, axs=plt.subplots(4,1,figsize=(17,7))
ax=0
for x in stars:
s=data.groupby( [x]).sum().reset_index()
d=s.sort_values([ 'Meta_score'],ascending=False)[:10]
axs[ax].bar(d[x],d['Meta_score'])
axs[ax].set_title(x)
axs[ax].set_ylabel("Appearances", weight = "bold")
ax+=1
plt.tight_layout()
Starl
1000
500
Robert De Niro
Al Pacino
Clint Eastwood
Leonardo DICaprio James Stewart
Christian Bale
Johnny Depp
Jake Gylenhaal Denzel Washington
Tbm Hanks
Star2
400
200
Emma Watson
Matt Damon
Julie Delpy
Diane Keaton
Kate Winslet
Meryl Streep
lan McKellen
Chris Evans
bseph Cotten
Ed Harris
Star3
400
200
Rupert Grint
Jbe Pesci
John Goodman
Carrie fisher
Vera Miles
Scarlett Johansson Samuel L Jackson Rachel MCAdams
Jennifer Connelly Christopher Plummer
Stard
200
Diane Keaton
Rooney Mara
Henry Travers
Frederic Forrest
Michael Caine
Catherine Keener
Mark Ruffalo
Yvonne Furneaux
Orlando Bloom
Brad Pitt
Appearance](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Feabf7664-60cc-42af-924f-64be4ec0bb18%2F78c3ec35-9312-4fa8-b917-bbb1a0022138%2F44c8ep_processed.png&w=3840&q=75)
Transcribed Image Text:EDA on IMDB Movies Dataset
Notebook Data Logs Comments (5)
Appearances of Stars in top meta_scores
31:
stars=['Star1','Star2','Star3','Star4']
fig, axs=plt.subplots(4,1,figsize=(17,7))
ax=0
for x in stars:
s=data.groupby( [x]).sum().reset_index()
d=s.sort_values([ 'Meta_score'],ascending=False)[:10]
axs[ax].bar(d[x],d['Meta_score'])
axs[ax].set_title(x)
axs[ax].set_ylabel("Appearances", weight = "bold")
ax+=1
plt.tight_layout()
Starl
1000
500
Robert De Niro
Al Pacino
Clint Eastwood
Leonardo DICaprio James Stewart
Christian Bale
Johnny Depp
Jake Gylenhaal Denzel Washington
Tbm Hanks
Star2
400
200
Emma Watson
Matt Damon
Julie Delpy
Diane Keaton
Kate Winslet
Meryl Streep
lan McKellen
Chris Evans
bseph Cotten
Ed Harris
Star3
400
200
Rupert Grint
Jbe Pesci
John Goodman
Carrie fisher
Vera Miles
Scarlett Johansson Samuel L Jackson Rachel MCAdams
Jennifer Connelly Christopher Plummer
Stard
200
Diane Keaton
Rooney Mara
Henry Travers
Frederic Forrest
Michael Caine
Catherine Keener
Mark Ruffalo
Yvonne Furneaux
Orlando Bloom
Brad Pitt
Appearance
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 9 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY