title: Problem with np.where() and conditional operator - " ValueError: For argument "inplace" expected type bool, received type Series."
body: <p>Something happened overnight to my favorite np function and I don't understand what?
  The below code used to work just fine  and now I get the following error</p>
  <pre><code>data = {'text':  ['Facotry One fired', 'Second value', 'Match'],
          'H&amp;S': [1, 0 , 0]}
  df_test = pd.DataFrame(data, columns = ['text','H&amp;S'])
  df_test['H&amp;S'] = np.where(df_test['text'].str.contains('fired'), 0, df_test['H&amp;S']) 
  </code></pre>
  <p>Expected Outcome</p>
  <pre><code>data = {'text':  ['Facotry One fired', 'Second value', 'Match'],
              'H&amp;S': [0, 0 , 0]}
      df_test = pd.DataFrame(data, columns = ['text','H&amp;S'])
  </code></pre>
  <p>The error:</p>
  <pre><code>ValueError                                Traceback (most recent call last)
  &lt;ipython-input-28-d8607dc64cae&gt; in &lt;module&gt;
        4 df_test = pd.DataFrame(data, columns = ['text','H&amp;S'])
        5 
  ----&gt; 6 df_test['H&amp;S'] = np.where(df_test['text'].str.contains('fired'), 0, df_test['H&amp;S'])
  
  ~\anaconda3\lib\site-packages\pandas\core\generic.py in where(self, cond, other, inplace, axis, level, errors, try_cast)
     8916 
     8917         other = com.apply_if_callable(other, self)
  -&gt; 8918         return self._where(
     8919             cond, other, inplace, axis, level, errors=errors, try_cast=try_cast
     8920         )
  
  ~\anaconda3\lib\site-packages\pandas\core\generic.py in _where(self, cond, other, inplace, axis, level, errors, try_cast)
     8649         applied as a function even if callable. Used in __setitem__.
     8650         &quot;&quot;&quot;
  -&gt; 8651         inplace = validate_bool_kwarg(inplace, &quot;inplace&quot;)
     8652 
     8653         # align the cond to same shape as myself
  
  ~\anaconda3\lib\site-packages\pandas\util\_validators.py in validate_bool_kwarg(value, arg_name)
      208     &quot;&quot;&quot; Ensures that argument passed in arg_name is of type bool. &quot;&quot;&quot;
      209     if not (is_bool(value) or value is None):
  --&gt; 210         raise ValueError(
      211             f'For argument &quot;{arg_name}&quot; expected type bool, received '
      212             f&quot;type {type(value).__name__}.&quot;
  
  ValueError: For argument &quot;inplace&quot; expected type bool, received type Series.
  </code></pre>