Upuść null rzędy pandy
df.dropna()
Bad Barracuda
df.dropna()
df.dropna(subset=['name', 'born'])
result.dropna(subset = ["rReview"], inplace=True)
# Returns a new DataFrame omitting rows with null values
df4.na.drop().show()
# +---+------+-----+
# |age|height| name|
# +---+------+-----+
# | 10| 80|Alice|
# +---+------+-----+
>>> df.dropna(inplace=True)
>>> df
name toy born
1 Batman Batmobile 1940-04-25
#Drop the rows where at least one element is missing.
df.dropna()