Filtering multiple conditions from a Dataframe in Python
<p>I want to filter out data from a dataframe using multiple conditions using multiple columns. I tried doing so like this:</p>

<pre><code>arrival_delayed_weather = [[[flight_data_finalcopy["ArrDelay"] &gt; 0]] &amp; [[flight_data_finalcopy["WeatherDelay"]&gt;0]]]
arrival_delayed_weather_filter = arrival_delayed_weather[["UniqueCarrier", "AirlineID"]]
print arrival_delayed_weather_filter
</code></pre>

<p>However I get this error message:</p>

<blockquote>
  <p>TypeError: unsupported operand type(s) for &amp;: 'list' and 'list'</p>
</blockquote>

<p>How do I solve this?</p>

<p>Thanks in advance</p>