signe python
import numpy as np
print(np.sign([-10, 0, 123]))
CompSciGeek
import numpy as np
print(np.sign([-10, 0, 123]))