Numpy "where" with multiple conditions
<p>I try to add a new column "energy_class" to a dataframe "df_energy" which it contains the string "high" if the "consumption_energy" value > 400, "medium" if the "consumption_energy" value is between 200 and 400, and "low" if the "consumption_energy" value is under 200.
I try to use  np.where from numpy, but I see that <code>numpy.where(condition[, x, y])</code> treat only two condition not 3 like in my case.</p>

<p>Any idea to help me please?</p>

<p>Thank you in advance</p>