0
假設我創建了以下圖表。我的問題是如何可視化它?PYSPARK:如何可視化GraphFrame?
# Create a Vertex DataFrame with unique ID column "id"
v = sqlContext.createDataFrame([
("a", "Alice", 34),
("b", "Bob", 36),
("c", "Charlie", 30),
], ["id", "name", "age"])
# Create an Edge DataFrame with "src" and "dst" columns
e = sqlContext.createDataFrame([
("a", "b", "friend"),
("b", "c", "follow"),
("c", "b", "follow"),
], ["src", "dst", "relationship"])
# Create a GraphFrame
from graphframes import *
g = GraphFrame(v, e)
亞歷克斯:你問的可視化工具,技術等...可視化圖框?那麼你可以看到筆記本接口。請參閱[使用Apache Spark的GraphFrames實時飛行性能](https://databricks.com/blog/2016/03/16/on-time-flight-performance-with-graphframes-for-apache-spark.html) –
@RamGhadiyaram我希望最好使用spark/python庫可視化圖形。如果沒有使用工具的東西 – Alex