FIX: Fix downcasting of float to timedelta.
CLN: Removed unused variable. PEP8.