Code Monkey home page Code Monkey logo

neo4j-complaints's Introduction

consumer_complaints

This code accompanies the webinar Using LOAD CSV in the Real World.

Setup

  • Download Consumer_Complaints.csv here. Note that your .csv file might have more rows than mine did; they appear to update the data regularly.

  • Find the arrows tool here.

  • Sublime Text 2 (the editor used in the webinar) along with the Cypher plugin.

Import

  • Change line 1 of load.cql to point to the location of your Consumer_Complaints.csv file.

    • OSX and Unix: file:///path/to/Consumer_Complaints.csv
    • Windows: file:C:/path/to/Consumer_Complaints.csv
  • Send load.cql to the neo4j-shell: ./bin/neo4j-shell -file load.cql

Important Note that this import was done on a 16GB machine. If you have less RAM and particularly if you are on Windows, please see these blog posts:

Also note that in the original webinar, I split Consumer_Complaints.csv into separate files to deal with rows with empty strings. Since then, I've modified the script to only use Consumer_Complaints.csv but with empty strings filtered out for the subissues and subproducts:

FROM {FILEPATH} AS line
WITH line WHERE line.`Sub-issue` <> ''
FROM {FILEPATH} AS line
WITH line WHERE line.`Sub-product` <> ''

Query

Run all the example queries:

./bin/neo4j-shell -file query.cql

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.