In [1]:
import pandas as pd
import graphistry
#graphistry.register(key='MY_KEY_HERE', server='labs.graphistry.com') #https://www.graphistry.com/api-request
1. Nodes should have columns "x", "y"
In [2]:
edges = pd.DataFrame({'s': [0,1,2, 3], 'd': [1,2,3, 0]})
nodes = pd.DataFrame({'n': [0,1,2, 3], 'x': [0, 0, 1, 1], 'y': [0, 5, 5, 0]})
2. The bindings should include ".settings(url_params={'play': 0})"
In [3]:
graphistry\
.settings(url_params={'play': 0})\
.nodes(nodes).edges(edges)\
.bind(source='s', destination='d', node='n')\
.plot()
Out[3]:
In [ ]: