Change fname to path in to_parquet

- [X] closes #23574
- [N/A ] tests added / passed
- [X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ N/A?] whatsnew entry

https://github.com/pandas-dev/pandas/issues/23574