For instance, we may do the following: (a - b) / pd.Timedelta(hours=12) But not (a - b) * pd.Timedelta(hours=1/12)
Who cares about redundancy? Readability is better than "how you'd do things mathematically."
-
-
In other words, we have dozens of redundant things hanging around. Why is this one suddenly bad?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
As a maintainer I care about redundancy enormously. I work on CPUs which involve lots of redundancy by necessity and it fucking sucks.
-
Copy & pasted & slightly modified code is a a complete and utter pox and a continual source of bugs
-
I mean. Go.
-
And notwithstanding, this very simple script has *three* separate libraries for handling time. stdlib, numpy, and pandas. So... /shrug
-
I mean this seems to say more about numpy and pandas than anything else :(
-
Did you not see the opening tweet of the thread?
-
I did, but I still see no issue with using division to do it
-
I can name three other practices that this violates, but also the general point should be "why are we reimplementing existing stuff?"
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
