# Create a Vertex DataFrame with unique ID column "id"
v = spark.createDataFrame([
("a", "Alice", 34),
("b", "Bob", 36),
("c", "Charlie", 30),
], ["id", "name", "age"])
# Create an Edge DataFrame with "src" and "dst" columns
e = spark.createDataFrame([
("a", "b", "friend"),
("b", "c", "follow"),
("c", "b", "follow"),
], ["src", "dst", "relationship"])
g = GraphFrame(v,e)
result = g.connectedComponents()
It will return the result from .connectedComponents().
Describe the bug
I can't use .connectedComponents as it will throw
Py4JError: An error occurred while calling o825.setUseLabelsAsComponents.
Trace: py4j.Py4JException: Method setUseLabelsAsComponents([class java.lang.Boolean]) does not exist
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It will return the result from .connectedComponents().
System: