Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code snippets to be Spark Connect compatible #388

Open
MrPowers opened this issue Apr 1, 2024 · 0 comments
Open

Update code snippets to be Spark Connect compatible #388

MrPowers opened this issue Apr 1, 2024 · 0 comments

Comments

@MrPowers
Copy link
Collaborator

MrPowers commented Apr 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant