0

Is there a way to map using pandas if a number is larger or smaller than a certain threshold ?

I'm still new to python and pandas.

Let's say I have a row called "Score".

Can I map this row to a 0 if the score is less than 75 and a 1 if the score is >= 75 ?

I've tried manually looping through the dataframe using iloc, but still am not coming right.

0 Answers0