isLocal

Spark 실행기 없이 로컬로 True 실행할 수 있는지와 collect 메서드를 실행할 수 있는지를 반환 take 합니다.

문법

isLocal()

Returns

bool

예제

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