GithubHelp home page GithubHelp logo

cenuno / dsc-3-28-04-graph-data-io-codealong-seattle-ds-career-040119 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-students/dsc-3-28-04-graph-data-io-codealong-seattle-ds-career-040119

0.0 0.0 0.0 373 KB

License: Other

Jupyter Notebook 100.00%

dsc-3-28-04-graph-data-io-codealong-seattle-ds-career-040119's Introduction

NetworkX Introduction - Lab

Introduction

In this lab, you'll practice some of the introductory skills for NetworkX introduced in the previous lesson. To do this, you'll create a graph to visualize users and businesses from yelp reviews.

Objectives

You will be able to:

  • Create basic network graphs using NetworkX
  • Add nodes to network graphs with NetworkX
  • Add edges to network graphs with NetworkX
  • Visualize network graphs with NetworkX

Import the Data

To start, import the data stored in the file 'Yelp_reviews.csv'

#Your code here

Creating a Graph

Now, create an initial graph!

#Your code here

Adding Nodes

Create a node for each user and each business in the dataset. Networks with multiple node types like this are called bimodal networks.

Optionally, go further by creating a list of colors for when you visualize the graph. If you do this, append the color "green" to your color list every time you add a user node and append the color "blue" to your color list every time you add a business node.

#Your code here

Adding Edges

Next, iterate through the dataset and create an edge between users and the businesses they have reviewed.

#Your code here

Visualizing the Graph

Finally, create a visualization of your network. If you chose to color your nodes, pass the list of colors through the optional node_color parameter.

#Your code here

Summary

Nice work! In this lab you created an initial network to visualize a bimodal network of businesses and yelp reviewers!

dsc-3-28-04-graph-data-io-codealong-seattle-ds-career-040119's People

Contributors

shakeelraja avatar loredirick 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.