is... it? that sounds like an appropriate use of division
-
-
-
Replying to @EmilyGorcenski
you want to know how many hours are in this timespan; division means "how many X are in this Y"
2 replies 0 retweets 2 likes -
Replying to @eevee
Ehhh.... division of two Subclasses doesn't make sense. Why should I believe __div__ is even supported?
4 replies 0 retweets 2 likes -
Replying to @EmilyGorcenski @eevee
That's an odd way to see it. Isn't a duration a scalar? Regardless of whether it's an object underneath or a primitive
1 reply 0 retweets 2 likes -
In this context, it is not a scalar quantity.
1 reply 0 retweets 0 likes -
For instance, we may do the following: (a - b) / pd.Timedelta(hours=12) But not (a - b) * pd.Timedelta(hours=1/12)
2 replies 0 retweets 0 likes -
Replying to @EmilyGorcenski @passcod
sure. the former results in a unitless quantity; the latter results in time squared, which timedelta cannot represent
2 replies 0 retweets 2 likes -
Right, which is not the definition of a scalar.
2 replies 0 retweets 0 likes -
Replying to @EmilyGorcenski @passcod
values with units aren't scalars? i guess i never thought about it before but that seems weird
1 reply 0 retweets 0 likes
We can use a bunch of different things to represent units in an abstract mathematical sense, but it's not cut & dry.
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.