How to Check if PySpark DataFrame is empty? - GeeksforGeeks
https://www.geeksforgeeks.org/how-to-check-if-pyspark-dataframe-is-empty30.05.2021 · In this article, we are going to check if the Pyspark DataFrame or Dataset is Empty or Not. At first, let’s create a dataframe Python3 from pyspark.sql import SparkSession from pyspark.sql.types import StructType, StructField, StringType schema = StructType ( [ StructField ('COUNTRY', StringType (), True), StructField ('CITY', StringType (), True),