[ https://issues.apache.org/jira/browse/SPARK-13315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hossein Vatani closed SPARK-13315. ---------------------------------- I found the solution NewDf=Df.filter((Df.Col1==A) | (Df.Col2==B)) > 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 > > 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