How to use explode and explode_outer with nested data (array or list) using Spark DataFrame
explode function removes rows where explode column has null or empty values
it won't consider other column values in the same row, even other columns has data with respect to same row
to keep null or empty row(s) of explode column, we need to go for explode_outer
explode_outer will works as it is explode but,
it keeps null or empty column row(s)
we have used following functions / methods from pyspark
1. explode (sql function)
2. explode_outer (sql function)
3. count (DataFrame's method)
4. printSchema (DataFrame's method)
5. select (DataFrame's method)
6. withColumn (DataFrame's method)
On this page of the site you can watch the video online 0002 pyspark explode and explode outer with list data example using pyspark DataFrame methods with a duration of hours minute second in good quality, which was uploaded by the user Suresh eragana 23 May 2021, share the link with friends and acquaintances, this video has already been watched 965 times on youtube and it was liked by like viewers. Enjoy your viewing!