GithubHelp home page GithubHelp logo

movies-project-analysis's Introduction

README

Dependencies

Make sure to have Pandas, NumPy, and PySpark installed before running any of these

To get started, you will need these datasets from the movies folder in the cluster:

  • wikidata-readable that is generated from build_useful_movies.py
  • label_map
  • rotten-tomatoes.json.gz

Important Files

  • build_useful_movies.py
  • correlations.py
  • analyze.py
  • profitable_time.py

build_useful_movies.py

run command: spark-submit build_useful_movies.py wikidata-movies label_map output

Cleans the data output from build_wikidata_movies.py and maps all wikidata ids to its respective labels in label_map

outputs: movies-readable.json.gz

correlations.py

run command: python3 correlations.py

Loads movies-readable.json.gz and rotten-tomatoes.json.gz into the program, and outputs the correlations of specific columns in the dataset into the terminal using a bunch of print statements. Summary of the results can be found in the Project Summary

analyze.py

run command: python3 analyze.py

Loads movies-readable.json.gz and rotten-tomatoes.json.gz into the program again, and takes a deeper look into the data. Mainly focused on cast_member, director, and made_profit. Outputs four graphs that gives insight on movie profit and ratings.

outputs:

  • top_directors.png
  • top_actors.png
  • directors_sd.png
  • actors_sd.png

profitable_time.py

run command: python3 profitable_time.py

Loads movies-readable.json.gz and rotten-tomatoes.json.gz, and groups the movies/works that made profit by publication month. Outputs a histogram on what publication month had the most movies that made profit.

output: month-profit-count.png

Note that both movies-readable.json.gz and rotten-tomatoes.json.gz should be in the same folder as the Python programs above

movies-project-analysis's People

Watchers

James Cloos avatar Davis Sawali avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.