Can you tell me when to use these vectorization methods with basic examples?
I see that map is a Series method whereas the rest are
map
Series
Just wanted to point out, as I struggled with this for a bit
def f(x): if x < 0: x = 0 elif x > 100000: x = 100000 return x df.applymap(f) df.describe()
df = df.applymap(f) df.describe()