TST: fix read_stata doctest #42670
- [x] closes #42670
- [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
- [x] example docstring code fixed for read_strata

Yes but the only solution I can see is creating a dummy .dta file for it to work since it needs a file to be read and I don't know where you would store that. For example, should I create an examples folder to store it so all future example documentation code can run as well? Hello @KrishnaSai2020! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:



There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2021-07-31 07:38:51 UTC Made the requested changes @fangchenli.  This is ruining the docstring's purpose just to pass a test. It is not a good idea.  The entire point of reading with chunks to to parse a large data file.  IT should have > 10,000 roww to be illustrative. 
 @bashtage I see what you mean. I made the changes to the df's size please review the new changes. @bashtage thanks for you help. I have now made the changes. @bashtage I think I've fixed the formatting now. Please do let me know if there is anything else  Think I've fixed them please review. Need to add `pandas/io/stata.py \ ` after this line so that the state doctests are run.

https://github.com/pandas-dev/pandas/blob/b8d750fb90c68d4af25af89442aba001483adffa/ci/code_checks.sh#L123

 @bashtage I've added this doctest into the scripts and resolved the conflicts This should now pass all checks. From what I can tell everything works apart from the doctests in Style_render.py which is unrelated to this pr. @fangchenli Could I get an update as to what is going to happen with this pr, please? Is it going to get merged? or have I done something wrong which means it can't get merged? @fangchenli please re-review Could I get a second opinion on this PR, please? it's passed all checks and already has one approval @KrishnaSai2020 This LGMT.  I'll leave it to @jreback to make the final decision. You don't need to merge master in anymore unless there is a conflict.  @KrishnaSai2020 Thanks.