Source code for synapse.ml.core.spark.functions

# Copyright (C) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in project root for information.

from pyspark import SparkContext
from pyspark.sql import Column


[docs]def template(expr): ctx = SparkContext._active_spark_context return Column( ctx._jvm.com.microsoft.azure.synapse.ml.core.spark.Functions.template(expr) )