import numpy as np
a = np.array([50, 60, 80, 45, 30])
b = np.piecewise(a, [a < 60, a == 60, a > 60], [-1, 0, 1])
print(b)

234e33ca8420b6a4a08135e346a74264a3a6bd21
<mask token>

<mask token>
print(b)

<mask token>
a = np.array([50, 60, 80, 45, 30])
b = np.piecewise(a, [a < 60, a == 60, a > 60], [-1, 0, 1])
print(b)

import numpy as np
a = np.array([50, 60, 80, 45, 30])
b = np.piecewise(a, [a < 60, a == 60, a > 60], [-1, 0, 1])
print(b)
