 ENH: Allow compression in NDFrame.to_csv to be a dict with optional arguments (#26023)
- [x] closes #26023 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
