Example: pandas has a Timedelta subclass. I want to get the number of hours from a given Timedelta. I have two options:
-
-
Show this thread
-
First, break it into components, convert each component to hours, and sum them.
Show this thread -
Or second: divide by a Timedelta representing 1 hour and get a floating point (or an integer!) as my return. This is obviously way less code
Show this thread -
New conversation -
-
-
"Magic" makes ops lives miserable... If I can't read the code to understand, I'm lost.
-
And devs' lives
End of conversation
New conversation -
-
-
like "rails" and "mean" ?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.