I have a Pyspark RDD with a text column that I want to use as a filter, so I have the following code:
table2 = table1.filter(lambda x: x[12] == "*TEXT*")
To the problem ... As you can see, I use *to try to tell him to interpret this as a template, but not succeed. Does anyone have any help?
source
share