scala: lines.filter(line => line.contains("Python"))
pyspark: lines.filter(lambda x:x.find("Python")!=-1)
更多见 pyspark rdd
scala: lines.filter(line => line.contains("Python"))
pyspark: lines.filter(lambda x:x.find("Python")!=-1)
更多见 pyspark rdd
本文标题:pyspark中实现scala的contains函数
本文链接:https://www.haomeiwen.com/subject/aajpcctx.html
网友评论