pyspark.sql.SparkSession.tvf#
- property SparkSession.tvf#
- Returns a - tvf.TableValuedFunctionthat can be used to call a table-valued function (TVF).- New in version 4.0.0. - Returns
 - Notes - This API is evolving. - Examples - >>> spark.tvf <pyspark...TableValuedFunction object ...> - >>> import pyspark.sql.functions as sf >>> spark.tvf.explode(sf.array(sf.lit(1), sf.lit(2), sf.lit(3))).show() +---+ |col| +---+ | 1| | 2| | 3| +---+