DOC: added copy functionality in code blocks
Hi, I was going through the docs and thought it would be convenient to have a copy button in the code blocks. So I tried to add it and it works fine. If this is something you'd want as well then, I'll continue to work on this further to make it more reusable and clean. Please let me know what you think. Thank you. 

(I've downloaded the icon from https://uxwing.com/copy-icon/, which states that _" License: All icons are free to use any personal and commercial projects without any attribution or credit. "_  )

- [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Thanks for the pull request. While this does sounds like a good idea, I don't think maintaining custom HTML & JS code is the best approach.

Since the pandas docs uses sphinx, a copy feature through an extension like this one would be better. https://sphinx-copybutton.readthedocs.io/en/latest/ Sure, would you want me to give `sphinx-copybutton` a try?  > Sure, would you want me to give `sphinx-copybutton` a try?

Sure, that would be great. Hello @Meghana-12! 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 2022-07-01 14:36:08 UTC Do I have to add the `sphinx-copybutton` to dependencies in the `environment.yml` file as well? > Do I have to add the `sphinx-copybutton` to dependencies in the `environment.yml` file as well?

yes exactly @Meghana-12 do you have time to add the missing dependency, and build the docs to see everything is working as expected? Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

If you need assistance in building the documentation, here's a guide: https://pandas.pydata.org/docs/development/contributing_documentation.html#how-to-build-the-pandas-documentation