title: PyArrow Table: Filter rows
body: <p>I have a <code>RecordBatch</code> from a Plasma DataStore which I can read into either a <code>pyarrow.RecordBatch</code> or a <code>pyarrow.Table</code>. I am now trying to filter out rows before converting it to pandas (<code>to_pandas</code>). </p>
  
  <p>Is there a way of using the <code>filter</code> methods from the new Dataset API (that you can use on ParquetDataset) on a <code>pyarrow.Table</code>? This would allow me to us a filter like this:</p>
  
  <p><code>[[('date', '=', '2020-01-01')]]</code> </p>
  
  <p>Looking at the source code both <code>pyarrow.Table</code> and <code>pyarrow.RecordBatch</code> appears to have a filter function but at least <code>RecordBatch</code> requires a boolean mask.</p>
  
  <p>Is this possible? The reason is that the dataset contains a lot of strings (and/or categories) which are not zero-copy, so running <code>to_pandas</code> actually introduces significant latency and I'm only every looking for about 20% of the dataset. </p>
  
  <p>Regards,<br>
  Niklas</p>