Skip to content

Instantly share code, notes, and snippets.

@timothyrenner
Created January 30, 2019 16:02
Show Gist options
  • Save timothyrenner/bf2a8feb1e554f97280a41ac8d8e4fc9 to your computer and use it in GitHub Desktop.
Save timothyrenner/bf2a8feb1e554f97280a41ac8d8e4fc9 to your computer and use it in GitHub Desktop.
Pyspark UDF Call
my_df.withColumn(
"predicted_score",
predict_udf(col("feature1"), col("feature2"), ...)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment