Skip to content

Instantly share code, notes, and snippets.

@timothyrenner
Created January 30, 2019 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothyrenner/7370db4de8bd0c429118e49f3c48ba5b to your computer and use it in GitHub Desktop.
Save timothyrenner/7370db4de8bd0c429118e49f3c48ba5b to your computer and use it in GitHub Desktop.
Pyspark Pandas UDF Call
data_frame.withColumn(
"prediction",
predict_pandas_udf(col("feature1"), col("feature2"), ...)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment