Created
January 30, 2019 15:59
-
-
Save timothyrenner/5ea08753a14516d4cc4c2f16adce295d to your computer and use it in GitHub Desktop.
Pyspark UDF Creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyspark.sql.functions import udf | |
from pyspark.sql.types import DoubleType | |
predict_udf = udf(predict, DoubleType()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment