少し前にこんなnoteを書きました。 使って計算するしかないらしい。 ちなみに 計算式はこうなるらしい。。👇 ・時間を取り出すseconds//60//60 ・分を取り出す seconds//60%60 ・秒を取り出す seconds%60 // … は割った数の整数部分を取り出す % … は割った数のあまり ...
Creating a Quantity object with a time unit from a TimeDelta object fails with "TypeError: The value must be a valid Python or Numpy numeric type.". This has been tested in 5.0.1, 6.1.3, and 7.0.1.
I encountered the same problem, and I do not understand why polars does not accept timedelta in days. (My use case is resampling a timeseries, the sampling rate is a user parameter that can result in ...