apply
Also written: .apply()
Calls a function you wrote once for each value in a column and collects the results into a new Series. It runs ordinary Python per value, so it is slower than vectorized math.
Also written: .apply()
Calls a function you wrote once for each value in a column and collects the results into a new Series. It runs ordinary Python per value, so it is slower than vectorized math.