Remove import of pandas as pd in core.window
Do `isinstance` checks against `ABCFoo`.

- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
