Skip to content

Update code snippets to be Spark Connect compatible #388

@MrPowers

Description

@MrPowers

Here is an example blog post that uses the old syntax:

columns = ["character", "franchise"]
data = [("link", "zelda"), ("king k rool", "donkey kong"), ("samus", "metroid")]
rdd = spark.sparkContext.parallelize(data)
df = rdd.toDF(columns)

It would be great to update this post (and all the other code snippets in blog posts) to be Spark Connect compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions