SyntaxFix
Write A Post
Hire A Developer
Questions
Try
df.loc[df.my_channel > 20000, 'my_channel'] = 0
Note: Since v0.20.0, ix has been deprecated in favour of loc / iloc.
ix
loc
iloc