Question: Question 7 . 3 . Create a new DataFrame, called disney, by setting the index of disney _ movies to 'movie _ title'. Don't change
Question Create a new DataFrame, called disney, by setting the index of disneymovies to 'movietitle'. Don't change disneymovies.
disney disneymovies.setindexmovietitle'
disney
disney disneymovies.setindexmovietitle'
disney
genre MPAArating year totalgrossmillions adjustedgrossmillions
movietitle
Snow White and the Seven Dwarfs Musical G
Pinocchio Adventure G
Fantasia Musical G
Song of the South Adventure G
Cinderella Drama G
The Light Between Oceans Drama PG
Queen of Katwe Drama PG
Doctor Strange Adventure PG
Moana Adventure PG
Rogue One: A Star Wars Story Adventure PG
rows times columns
grader.checkq
q passed!
You should think about why we've chosen to set the index to 'movietitle', instead of any other column.
Question Time for some movie trivia! What genre is the movie 'Finding Nemo' and in what year was it released? Assign your answers to nemogenre, which should be a string, and nemoyear, which should be an int.
Don't type in the answers by hand; get Python to extract this information for you.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
