concept null value in category pyspark
appears as: null value, null values, null values, null value

This is an excerpt from Manning's book Data Analysis with Python and PySpark.
from pyspark.sql.functions import col, greatest ex22.printSchema() # root # |-- key: string (containsNull = true) # |-- value1: long (containsNull = true) # |-- value2: long (containsNull = true) # `greatest` will return the greatest value of the list of column names, # skipping null value # The following statement will return an error ex22.select( greatest(col("value1"), col("value2")).alias("maximum_value") ).select( "key", "max_value" )
Left and right joins are very useful when you are not certain if the link table contains every key. You can then fill the null values — see listing 5.17 — or process them knowing you didn’t drop any records.