We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7daf4c commit d7a466dCopy full SHA for d7a466d
1 file changed
python/datafusion/dataframe.py
@@ -430,9 +430,9 @@ def filter(self, *predicates: Expr) -> DataFrame:
430
"""
431
df = self.df
432
for p in predicates:
433
- if isinstance(p, str) or not isinstance(p, Expr):
+ if not isinstance(p, Expr):
434
raise TypeError(_EXPR_TYPE_ERROR)
435
- df = df.filter(expr_list_to_raw_expr_list(p)[0])
+ df = df.filter(p.expr)
436
return DataFrame(df)
437
438
def with_column(self, name: str, expr: Expr) -> DataFrame:
0 commit comments