更新时间:2023-11-29 10:03:58
这是解决问题的代码行:
Here is the line of code that solved the problem:
cnt_cond(col('DOLocationID').isin([i['DOLocationID'] for i in mtrips.collect()])).alias('trips_to_pop')
如何检查手头的值是否在某些 PySpark 数据帧的特定列中?
当从中选择特定列时,如何检查数据表中的列是否为空?
如何在没有循环的情况下检查特定数据列是否包含给定值