title: Creating a new column based on three existing columns
body: <p>I have a data frame with three columns, <code>target_degrees</code>, <code>low_degrees</code>, and <code>high_degrees</code>. I would like to make a new column labeled success that checks to see if target_degrees is located between <code>low_degrees</code> and <code>high_degrees</code>.</p>
  <p>example dataframe:</p>
  <pre><code>target_degrees   low_degrees   high_degrees   success
     10                0              50          1
     50                45             100         1
     20               100             200         0
     1                300             350         0
  </code></pre>
  <p>I have tried using <code>np.where</code> in the following code but I am getting a syntax error.</p>
  <pre><code>df['success'] = np.where(df['target_degrees'] is in np.arange(df['low_degrees'], df['high_degrees']), 1, 0)
  </code></pre>