pyspark.sql.SparkSession.builder.appName

builder.appName(name: str) → pyspark.sql.session.SparkSession.Builder

Sets a name for the application, which will be shown in the Spark web UI.

If no application name is set, a randomly generated name will be used.

New in version 2.0.0.

Changed in version 3.4.0: Supports Spark Connect.

Parameters
namestr

an application name

Returns
SparkSession.Builder

Examples

>>> SparkSession.builder.appName("My app")
<pyspark.sql.session.SparkSession.Builder...