且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查手头的值是否在某些 PySpark 数据帧的特定列中?

更新时间: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')