Del via


isLocal

Returns True if the collect and take methods can be run locally (without any Spark executors).

Syntax

isLocal()

Returns

bool

Examples

df = spark.sql("SHOW TABLES")
df.isLocal()
# True