PySpark referenceClassesDataFrameisLocalOn this pageisLocal Returns True if the collect and take methods can be run locally (without any Spark executors). Syntax isLocal() Returns bool Examples Pythondf = spark.sql("SHOW TABLES")df.isLocal()# True