Pyspark Union, This function returns an error if the schema of data frames differs from … DataFrame.