{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Quickstart: Graphing Les Misérables\n", "\n", "This simple example from our [quickstart walkthrough](http://graphistry.github.io/pygraphistry/index.html#quickstart-graph-les-misérables) introduces the basics of PyGraphistry. We also have more advanced tutorials avaiable.\n", "\n", "You can [download this notebook](https://github.com/graphistry/pygraphistry/tree/master/demos) to run it locally." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import pandas\n", "import graphistry\n", "\n", "graphistry.register(key='Email pygraphistry@graphistry.com to get your API key')" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [], "source": [ "# Parse CSV using Pandas\n", "links = pandas.read_csv('data/lesmiserables.csv')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", " | source | \n", "target | \n", "value | \n", "
---|---|---|---|
0 | \n", "Napoleon | \n", "Myriel | \n", "1 | \n", "
1 | \n", "Mlle.Baptistine | \n", "Myriel | \n", "8 | \n", "
2 | \n", "Mme.Magloire | \n", "Myriel | \n", "10 | \n", "