# Returns a new DataFrame omitting rows with null values df4.na.drop().show() # +---+------+-----+ # |age|height| name| # +---+------+-----+ # | 10| 80|Alice| # +---+------+-----+