Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Returns a new DataFrame omitting rows with null values

# Returns a new DataFrame omitting rows with null values

df4.na.drop().show()
# +---+------+-----+
# |age|height| name|
# +---+------+-----+
# | 10|    80|Alice|
# +---+------+-----+
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #Returns #DataFrame #omitting #rows #null #values
ADD COMMENT
Topic
Name
7+1 =