Reputation: 103
Please, I would appreciate some help: I need to add a parameter to this function but this syntax is not correct:
val input_parameter = 100
df_filtered = (df.filter(( (F.col('LOCID') != F.col('LOCID2') ) &
(F.col('distance') <= F.col('RADIUSINMETERS') + F.col('RADIUSINMETERS2') + input_parameter)
))
)
Many thanks!
Upvotes: 0
Views: 712