BUG: fix categories in HDFStore not filtering correctly (#13322)
- [x] closes #13322
- [x] tests passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry

Fixed bug in pytables.py where series with categories were not being filtered properly. 
