you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 month ago* (last edited 1 month ago)

also python has built-ins for sum, min, max, and math.prod - which account for a lot of use cases of reduce in a more readable way.

But if you're really crunching numbers, it's just better to go with something like numpy, pandas, polars, ...

  • source
  • parent