Created
September 19, 2017 13:51
-
-
Save wolframalpha/658be3edce43d897f0ebdba69a7b8caf to your computer and use it in GitHub Desktop.
This file contains hidden or 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 * | |
| 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