Open crosspolar opened 2 years ago
Thanks for the request @crosspolar! Do you have a suggestion for how this case could be checked for efficiently?
Hi! Intereting Idea. When I learn pandas, I often encounter performance problems with apply
. Can u describe it in more details?
And, I can't run the second example, neither can figure out what it means.
and the much less efficient
df['col1'] = df.apply(function(x) {complex_function(x['col1'])})
Is your feature request related to a problem?
From what I've seen in python classes: Handling a huge data frame, especially beginners using
apply
on huge data frames don't know that it loads the whole frame while looping.Example: Consider following function and data frame
For a greater data frame, consider performance differences with
and the much less efficient
Describe the solution you'd like
Just a small warning that, if only one column is accessed within apply body. Something like:
Describe alternatives you've considered
We just leave it as it is, no great differences for most users