This project involves analyzing a movie dataset obtained from Kaggle. The analysis aims to extract meaningful insights related to movie ratings, revenue, actors, and genres. The dataset includes various attributes, such as titles, genres, actors, release years, and revenue.
- Source: Kaggle
- Columns:
- Title: The title of the movie.
- Genre: The genre(s) of the movie (comma-separated).
- Actors: The main actors in the movie (comma-separated).
- Release Year: The year the movie was released.
- Revenue: The revenue generated by the movie.
The following questions were explored in this analysis:
- What is the highest rated movie in the dataset?
- What is the average revenue of all the movies in the dataset?
- What is the average revenue from 2015 to 2017 in the dataset?
- How many movies were released in the year 2016?
- HOw many movies where directed by Christopher Nolan?
- How many movies in the data set have a rating higher than 8.0?
- What is the mean rating of movies directed by Christopher Nolan?
- Find the year with the highest rating.
- What is the percentage increase in the number of movies made between 2006 and 2016?
- Find the most common actor in all the movies.
- Note, the
"Actors"column has multiple actor names. You must find a way to search for the most commin actor in all the movies.
- Note, the
- ** How many uniqure genre are there in the dataset?**
- Note, the
"Genre"column has multiple genres per movie. You must find a way to identify them individually.
- Note, the
-
Data Cleaning:
- Converted necessary columns to string types for processing.
- Handled missing or malformed entries in the dataset.
-
Data Transformation:
- Split multi-valued fields (e.g., actors and genres) into individual entries.
- Exploded lists into separate rows for analysis.
-
Data Analysis:
- Used pandas for data manipulation and calculations.
- Extracted insights such as averages, counts, and unique values.
To replicate this analysis, ensure you have Python installed with the following libraries:
pandasnumpy- (Any other libraries you might have used)
pip install pandas numpy