In [1]:
#SKIP_COMPARE_OUTPUT
import pixiedust
In [2]:
pixiedust.installPackage("graphframes:graphframes:0.1.0-spark1.6")
Out[2]:
In [3]:
#import the Graphs example
from graphframes.examples import Graphs
#create the friends example graph
g=Graphs(sqlContext).friends()
In [4]:
g.vertices.show()
In [5]:
g.edges.show()