Skip to main content

isLocal

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

Syntax​

isLocal()

Returns​

bool

Examples​

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