Hossein Vatani created SPARK-13315: -------------------------------------- Summary: multiple columns filtering Key: SPARK-13315 URL: https://issues.apache.org/jira/browse/SPARK-13315 Project: Spark Issue Type: Improvement Components: PySpark Affects Versions: 1.6.0 Reporter: Hossein Vatani Priority: Minor Fix For: 1.6.0
Hi i tried to filter tow col like below: NewDf=Df.filter(Df.Col1==A | Df.Col2==B) but i got below Py4JError: An error occurred while calling o230.or. Trace: py4j.Py4JException: Method or([class java.lang.String]) does not exist at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:335) at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:344) at py4j.Gateway.invoke(Gateway.java:252) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:209) at java.lang.Thread.run(Thread.java:745) as I found, there is any capability to filter(conditions) and only filter(condition) available. P.S. OS:CentOS7, -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org