title: Filter DataFrame in Pandas on sum of rows
body: <p>I have a dataframe</p>
  
  <pre><code>[1] df
  ProductIds  A   B   C   D
  11210000018 0   0   0   0
  11210000155 1   0   0   0
  11210006508 0   0   0   0
  11210007253 0   0   0   0
  11210009431 0   0   0   0
  11210135871 1   0   0   0
  </code></pre>
  
  <p>I want to filter the frame by adding each row and if sum is greater than zero then filter that row. For the given condition the result would be like</p>
  
  <pre><code>ProductIds  A   B   C   D
  11210000155 1   0   0   0
  11210135871 1   0   0   0
  </code></pre>
  
  <p>One way of doing that is to add another column with sum and then filter like the following:</p>
  
  <pre><code>df['Sum'] = df.sum(axis = 1)
  df = df[df.Sum &gt; 0]
  df.drop(['Sum']
  </code></pre>
  
  <p>But is there any one liner builtin method to do this ? I cannot add the columns manually because there are thousands of columns. Thanks.</p>