nxcals.api.extraction.data.builders.DataFrame.isLocal

DataFrame.isLocal() bool

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

New in version 1.3.0.

Changed in version 3.4.0: Supports Spark Connect.

Return type:

bool

Examples

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