You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[pandas] Fix pandas Timedelta total_seconds return type (#169)
The `total_seconds` method returns a float, rather than an int.
This can be tested/confirmed as follows:
```python
import pandas as pd
ptd = pd.to_timedelta(1234.5678, unit="s")
print(ptd.total_seconds()) # 1234.5678
print(type(ptd.total_seconds())) # <class 'float'>
print(type(ptd)) # <class 'pandas._libs.tslibs.timedeltas.Timedelta'>
```
0 commit comments