CLN: Fix compile time warnings
- [x] passes `git diff upstream/master | flake8 --diff`

This commit suppresses these warnings

warning: comparison of constant -1 with expression\
of type 'PANDAS_DATETIMEUNIT' is always true\
[-Wtautological-constant-out-of-range-compare]
