title: Is there a way to generate a third category with the usage of .where or any other method?
body: <p>I can get the two categories, but when I go and implement a third category with the additional coding, I come across an error.</p>
  <p>Data:</p>
  <pre><code>Active                                 State/UTs
  0        6                       Andaman and Nicobar
  1    14550                            Andhra Pradesh
  2      634                         Arunachal Pradesh
  3     6415                                     Assam
  4       55                                     Bihar
  5       35                                Chandigarh
  6      354                              Chhattisgarh
  7        2  Dadra and Nagar Haveli and Daman and Diu
  8      367                                     Delhi
  9      885                                       Goa
  10     152                                   Gujarat
  11     617                                   Haryana
  12    1699                          Himachal Pradesh
  13    1286                         Jammu and Kashmir
  14     126                                 Jharkhand
  17      54                                    Ladakh
  18       9                               Lakshadweep
  19     125                            Madhya Pradesh
  21    3180                                   Manipur
  22    2104                                 Meghalaya
  23   11414                                   Mizoram
  24     712                                  Nagaland
  25    6322                                    Odisha
  26     914                                Puducherry
  27     326                                    Punjab
  28      86                                 Rajasthan
  29     913                                    Sikkim
  31    5505                                 Telengana
  32     691                                   Tripura
  33     227                             Uttar Pradesh
  34     379                               Uttarakhand
  35    8480                               West Bengal
  </code></pre>
  <p>code:</p>
  <pre><code>data2.insert(1, column = &quot;Level&quot;, value = np.where(data2[&quot;Active&quot;] &gt; 9700, &quot;Severe&quot;, data[&quot;Active&quot;] &lt; 9700 and data[&quot;Active&quot;] &gt; 4850, 'Less_Severe','Not_Severe'))
  </code></pre>
  <p>Output:</p>
  <pre><code>ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
  </code></pre>