Code Monkey home page Code Monkey logo

yelp-challenge-dataset's Introduction

Northwestern University

Yelp Dataset Challenge

This repository contains python scripts for reading, manipulating, and preparing variables from the Yelp Academic Dataset, used in an analytics competition at Northwestern University. Two python files, prep_data.py and simple_analytics.py, are included as examples of how to extract variables from nested json data using python's dictionary capability and how to perform ordinary least squares linear regression using python.

The final, prepped dataset is included in this repository. The original raw datasets are too large to include, but subsets of the original files and prepped dataset are included for testing. Be advised that due to the double for loops in the last portion of the prep_data.py script and lack of Cython/Numpy usage, prepping the dataset can take approximately six hours.

Dependencies

This was put together using Python 3.4.3. You'll need to install pandas in order to run the simple_analytics.py script. For processing the raw data using prep_data.py, no external python libraries are needed other than the tqdm library for monitoring progress.

yelp-challenge-dataset's People

Contributors

vc1492a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

yelp-challenge-dataset's Issues

Error while running prep_data.py

Hi,

While I try to execute the prep_data.py code I get the below error:

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 2522: character maps to

Can someone please offer advice to fix this?

Thanks

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.