TST: GH34037 add test for type error when using parameter 'min_period'
- [x] closes #34037 
- [ x] tests added / passed
- [x ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
