title: Delete a column in a pandas' DataFrame if its sum is less than x
body: <p>I am trying to create a program that will delete a column in a Panda's dataFrame if the column's sum is less than 10. </p>
  
  <p>I currently have the following solution, but I was curious if there is a more pythonic way to do this. </p>
  
  <pre><code>df = pandas.DataFrame(AllData)
  sum = df.sum(axis=1)
  badCols = list()
  for index in range(len(sum)):
      if sum[index]  &lt; 10:
          badCols.append(index)
  df = df.drop(df.columns[badCols], axis=1)
  </code></pre>
  
  <p>In my approach, I create a list of column indexes that have sums less than 10, then I delete this list. Is there a better approach for doing this?</p>