Conversation

python q: i may be idiot but in my data ppl entered manual numbers to a q. some of the numbers are obviously dumb. Id like to delete all dumb numbers, so any number outside of a specified range, just wanna make NaNs. all google things i try do not work. column is float64.
28
66
This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
Show replies
Replying to
The reason is you can't do a element-wise logical assignment. Needs to be an array. From Numpy import Select OR Where It's the equivalent of an SQL CASE WHEN statement. Then state your condition and set the value if True and False.
2