Skip to content

Instantly share code, notes, and snippets.

@wolframalpha
Created September 19, 2017 13:51
Show Gist options
  • Select an option

  • Save wolframalpha/658be3edce43d897f0ebdba69a7b8caf to your computer and use it in GitHub Desktop.

Select an option

Save wolframalpha/658be3edce43d897f0ebdba69a7b8caf to your computer and use it in GitHub Desktop.
from pyspark.sql.functions import udf
from pyspark.sql.types import *
schema = StructType([
StructField("foo", FloatType(), False),
StructField("bar", FloatType(), False)
])
udf(function(), schema)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment