1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
worty [1.4K]
2 years ago
7

Create a series called 'directors' that contains each director's name and his or her average rating. Print out the type of your

variable. Use the 'directors' series to find the average rating for Steven Spielberg. Print the value.
Computers and Technology
1 answer:
sasho [114]2 years ago
6 0

Using the computational language in python it is possible to write a code that we will use graphics to organize the names of the directors and the films they made.

<h3>Writing code in python:</h3>

<em>import pandas as pd</em>

<em>df = pd.read_csv('all_data/movie_metadata.csv')</em>

<em>print('Shape: ',df.shape)</em>

<em>df.head()</em>

<em>name = df[['director_name','imdb_score']] </em>

<em>directors = name.groupby(['director_name']).mean() </em>

<em>directors = directors.reset_index() </em>

<em>directors = directors.stack()</em>

<em>print(directors,'\n')</em>

<em>print(type(directors),'\n')</em>

<em>print(directors[directors=='Steven Spielberg'],'\n')</em>

<em>print(directors[102]['imdb_score'])</em>

<em>miyazaki = df[df['director_name'] == 'Hayao Miyazaki']['movie_title']</em>

<em>print(miyazaki)</em>

<em>pivot_agg = pd.pivot_table(df,values='imdb_score', index=['country'], columns=['director_name'],aggfunc=np.median)</em>

<em>pivot_agg</em>

<em>gladiator_duration = df[df['movie_title']=='Gladiator\xa0']['duration'] </em>

<em>gladiator_duration</em>

See more about python at brainly.com/question/18502436

#SPJ1

You might be interested in
Someone wanna be in a meeting with me <br><br><br> Code: rrx-ofrw-ocj
ss7ja [257]

Answer:

Zoom¿ is ot in zoom cause am down

6 0
3 years ago
Read 2 more answers
A soft news story and a feature story are the same thing.<br> O True<br> O False<br> HELLPP ASSAAAP
bogdanovich [222]
The answer would be False!
5 0
3 years ago
Read 2 more answers
The main technology for setting up a wireless local area network is​
julsineya [31]

Answer:

llllllffl

Explanation:

nnñbh hi Luigi

6 0
3 years ago
3 uses for auto formatting
zalisa [80]
Auto formatting is a computer software feature that automatically change the appearance of texts. Uses of auto formatting include the following:
it can be used to quickly apply or change automatic formatting.
It can be used to give a professional look to a document with minimal efforts.
the internet and network hyperlink option can be used to format email addresses and URL as clickable hyper link fields. 
The border line option can be used to apply paragraphs border styles to one's documents.
The table option can be used to create a table. 

3 0
3 years ago
In computing, what does LAN stand for?​
Arlecino [84]

Answer:

LAN stands for Local Area Network

4 0
3 years ago
Read 2 more answers
Other questions:
  • Assuming that data mining approaches are to be used in the following cases, identify whether the task required is supervised or
    12·1 answer
  • Write the java statement to creat an object mp4 class digital​
    8·1 answer
  • 50) Universal Containers has an integration that runs nightly to update the Product (Product2) object in Salesforce with updated
    9·1 answer
  • Which of the following scan only works if operating system’s TCP/IP implementation is based on RFC 793?
    12·1 answer
  • Why was the cooper black font made?
    5·1 answer
  • Layers allow you to work with one element of an image without disturbing the others true or false​
    15·1 answer
  • What is the biggest problem with technology today?
    10·1 answer
  • Notebook is the answer
    9·2 answers
  • Need help with Python coding from Zybooks...
    9·1 answer
  • us refe rence: so 1 ac 2 2. describe the applications for merged documents in terms of the following benefits 2. describe the ap
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!