Fortran has had array operations since the 1990 standard, but I believe that programmers who are familiar with that functionality still often use loops involving array elements. I do. Not all calculations conveniently map to array operations, and sometimes you can exit the loop if a condition is met. It's a benefit of a compiled, statically typed language to use loops without suffering a speed penalty.
Re:Self-Directed Pandas Crash Course
by edmundsauto on Sunday February 07, 2021 @03:42AM
(#26053632)
For folks doing this everyday, absolutely. For anyone just learning, it's Yet Another Thing to learn. Sure, the complete programmer will be able to think in better abstractions, but most people fail to reach that level. In part because of the complexity of early stage learning.
It's a balance, and I think pandas is on the more complex side of things.
Re:Self-Directed Pandas Crash Course
by glenngillen on Sunday February 07, 2021 @04:39AM
(#26053833)
If you don’t want the conceptual model and features pandas provides, is there a reason you don’t just use regular Python without pandas?
Re:Self-Directed Pandas Crash Course
by edmundsauto on Sunday February 07, 2021 @12:45PM
(#26056577)
Pandas has really great ingesting / exporting helpers, is easy to chart, and lots of tutorials reach for it first.
Those might be more excuses than reasons, but it’s my experience.
You are operating on n-dimensional arrays, not elements, so your need to write code that expresses that intent.
Anyone who thinks that anything besides writing "a + b" to add two matrices together is a good or simple solution is crazy.
Operate at a higher conceptual level. Don't use loops. Transform and compose your data, not your datums.