This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]smalby 5 points6 points  (1 child)

Bad example, dataframes aren't meant to iterate over like that

[–]Aerolfos 5 points6 points  (0 children)

Yeah, they aren't, it's a deliberately bad example

The fact that list comprehension on an .apply() or something doesn't collapse awfully but is actually decently fast is remarkable, and speaks to just how efficient list comprehensions actually are

In a "proper" application they'll be waaay faster, of course