<commit_before>---
layout:     post
title:      Use Python & Pandas to Create a D3 Force Directed Network Diagram 
date:       2016-02-01 19:06:30
time:	5
summary:    Network professionals often try to visualize their network connections. This tutorial will show you how to convert your network traffic into a beautiful interactive illustration.
categories: d3 python pandas
products:
 - top-level: Python 3
   arbitrary: Required Modules
   nested-products:
    - nested: Pandas
      sub-arbitrary: pip install pandas
    - nested: IP Address Module
      sub-arbitrary: pre-installed with Python 3.x
 - top-level: A text editor
   arbitrary: Your choice
   nested-products:
    - nested: My Favorites
      sub-arbitrary: Sublime Text 3, iPython Notebook
 - top-level: Optional
   arbitrary: You can get iPython Notebook and Pandas together by installing Anaconda 3
author: austin_taylor
author_github: austin-taylor
---



Our Goal
---
Create an [interactive force directed graph](http://bl.ocks.org/mbostock/4062045) to illustrate network traffic.

To get started save the following code to a file named index.html to your desktop or a path you'll remember.

<iframe src="/static/examples/force_directed/index.html" width="960px" height="500px" frameborder="0" scrolling="no"></iframe>

_You may need to edit the width and height depending on the size of your network_
<commit_msg>Update to D3 Force Directed blog<commit_after>---
layout:     post
title:      Use Python & Pandas to Create a D3 Force Directed Network Diagram 
date:       2016-02-01 19:06:30
time:	5
summary:    Network professionals often try to visualize their network connections. This tutorial will show you how to convert your network traffic into a beautiful interactive illustration.
categories: d3 python pandas
products:
 - top-level: Python 3
   arbitrary: Required Modules
   nested-products:
    - nested: Pandas
      sub-arbitrary: pip install pandas
    - nested: IP Address Module
      sub-arbitrary: pre-installed with Python 3.x
 - top-level: A text editor
   arbitrary: Your choice
   nested-products:
    - nested: My Favorites
      sub-arbitrary: Sublime Text 3, iPython Notebook
 - top-level: Optional
   arbitrary: You can get iPython Notebook and Pandas together by installing Anaconda 3
author: austin_taylor
author_github: austin-taylor
---



Our Goal
---
Create an [interactive force directed graph](http://bl.ocks.org/mbostock/4062045) to illustrate network traffic.


<iframe src="/static/examples/force_directed/index.html" width="960px" height="500px" frameborder="0" scrolling="no"></iframe>

_You may need to edit the width and height depending on the size of your network_

To get started save the following code to a file named index.html to your desktop or a path you'll remember.

{'fraction_non_alphanumeric': 0.07163323782234957, 'fraction_numerical': 0.0254297994269341, 'mean_word_length': 3.75809199318569, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '528890', 'n_tokens_mistral': 849, 'n_tokens_neox': 763, 'n_words': 331}