mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-14 12:10:24 +08:00
MAINT: Fix failures/warnings in test_api_shim.py
- Fixes a warning on indexing with a float that ultimately came from pd.Timedelta.total_seconds(). Adds ``timedelta_to_integral_seconds`` and ``timedelta_to_integral_minutes()`` functions and replaces various usages of ``int(delta.total_seconds())`` with them. - Fixes a warnings triggered in ``_create_daily_stats`` from passing tz-aware datetimes to np.datetime64.
This commit is contained in:
@@ -18,6 +18,7 @@ from numpy import (
|
||||
flatnonzero,
|
||||
hstack,
|
||||
nan,
|
||||
timedelta64,
|
||||
vectorize,
|
||||
where
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user