Skip to content

Neo4J graph's Batch and real-time data import from Pandas

Notifications You must be signed in to change notification settings

ZacharyLeahan/Panda2Neo4j

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Panda2Neo4j

A simple script to insert Pandas DataFrames into Neo4j graphs. There are 2 modes :

Batch Insert : Write nodes and edges to .csv files and call batch insert Py2Neo API
Sequential Insert : Insert node by node, after finishing with nodes, move on inserting edges.

Environment: Python 2.7, Unix, Neo4J 2.2

How to use :


Step 1:
Edit the follow configurations in "py2neo4j.py":
serverURL = 'localhost:7474'
dbURL = 'http://localhost:7474/db/data'
account = "neo4j"
password = "conchimnon"

nodename = "Person"
edgename = "RATED"
source_name = "Person"
dest_name = "Person"

Step 2: At root folder, run the following command:

python py2neo4j.py

About

Neo4J graph's Batch and real-time data import from Pandas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%