for example i have column in dateframe 'df' named 'SPEED' . SO df[df['Speed']>50] will simply put true and false according to condition in that column. But i want to put 0 instead of false and 1 instead of true. How to do that?
Asked
Active
Viewed 37 times