+ 2
To replace all odd numbers in numpy array with -1 in python language
Please give a solution I am not able to solve this problem
3 Réponses
+ 8
https://code.sololearn.com/ciNAybZ6DN6G/?ref=app
If I understood you well. Also I guess there are better ways, vectorize maybe.
+ 6
Without showing your attemts here you will hardly get some help. Try it as far as you can, link your code here, and people will help you.
+ 1
Sergei Romanov thanks for the code 🙏 it will help me a lot