ratmice opened a new issue, #23252:
URL: https://github.com/apache/datafusion/issues/23252

   ### Is your feature request related to a problem or challenge?
   
   Currently I use do a couple of `dataframe.filter` calls, when a single pass 
might be more efficient
   ```
   let matches_df = df.clone().filter(expr.clone());
   let inverse_matches_df = df.clone().filter(expr.is_not_true());
   ```
   
   It could be nice if there was a function `let (matches_df, 
inverse_matches_df) = df.partition(expr);`
   if it could produce both dataframes in a single pass from the filter 
expression.
   
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   The running two filters does actually work, but a dedicated function might 
be clearer and could be more efficient.
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to