title: Writing to a csv using pandas with filters
body: <p>I'm using the pandas library to load in a csv file using Python.</p>
  
  <pre><code>import pandas as pd
  df = pd.read_csv("movies.csv")
  </code></pre>
  
  <p>I'm then checking the columns for specific values or statements, such as:</p>
  
  <pre><code>viewNum = df["views"] &gt;= 1000
  starringActorNum = df["starring"] &gt; 3
  df["title"] = df["title"].astype("str")
  titleLen = df["title"].str.len() &lt;= 10
  </code></pre>
  
  <p>I want to create a new csv file using the criteria above, but am unsure how to do that as well as how to combine all those attributes into one csv. </p>
  
  <p>Anyone have any ideas?</p>