DataFrame.
isEmpty
Returns True if this DataFrame is empty.
True
DataFrame
Examples
>>> df_empty = spark.createDataFrame([], 'a STRING') >>> df_non_empty = spark.createDataFrame([("a")], 'STRING') >>> df_empty.isEmpty() True >>> df_non_empty.isEmpty() False
previous
pyspark.sql.DataFrame.intersectAll
next
pyspark.sql.DataFrame.isLocal