CLN: Remove redundant definitions in pandas.compat (filter, map, range, etc.)
- [X] xref #25725
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Some more low hanging fruit in the Python 2 removal process.  This should remove all references to the following functions in `pandas.compat` which are redundantly defined for Python 3:
  - `filter`
  - `map`
  - `range`
  - `zip`
  - `next`
  - `FileNotFoundError`
  - `ResourceWarning`