title: Use a.empty, a.bool(), a.item(), a.any() or a.all()
body: <pre><code>import random
  import pandas as pd
  
  heart_rate = [random.randrange(45,125) for _ in range(500)]
  blood_pressure_systolic = [random.randrange(140,230) for _ in range(500)]
  blood_pressure_dyastolic = [random.randrange(90,140) for _ in range(500)]
  temperature = [random.randrange(34,42) for _ in range(500)]
  respiratory_rate = [random.randrange(8,35) for _ in range(500)]
  pulse_oximetry = [random.randrange(95,100) for _ in range(500)]
  
  
  vitalsign = {'heart rate' : heart_rate,
               'systolic blood pressure' : blood_pressure_systolic,
               'dyastolic blood pressure' : blood_pressure_dyastolic,
               'temperature' : temperature,
               'respiratory rate' : respiratory_rate,
               'pulse oximetry' : pulse_oximetry}
  
  
  df = pd.DataFrame(vitalsign)
  
  
  df.to_csv('vitalsign.csv')
  
  
  mask = (50  &lt; df['heart rate'] &lt; 101 &amp;
          140 &lt; df['systolic blood pressure'] &lt; 160 &amp;
          90  &lt; df['dyastolic blood pressure'] &lt; 100 &amp;
          35  &lt; df['temperature'] &lt; 39 &amp;
          11  &lt; df['respiratory rate'] &lt; 19 &amp;
          95  &lt; df['pulse oximetry'] &lt; 100
          , "excellent", "critical")
  
  df.loc[mask, "class"]
  </code></pre>
  
  <p>it seems to be that,</p>
  
  <p>error that i am  receiving : </p>
  
  <blockquote>
    <p>ValueError: The truth value of a Series is ambiguous. Use a.empty,
    a.bool(), a.item(), a.any() or a.all()</p>
  </blockquote>
  
  <p>. how can i sort it out</p>