DOC: example using `clipboard_set` for all output formats
rather than change the underlying `DataFrame.to_clipboard` method, here I just included a simple example to demonstrate how to use pandas to send any output string (in any render format) to the clipboard.

- [x] closes #46269
I think `clipboard_set` is not even listed as a public function: https://pandas.pydata.org/docs/search.html?q=clipboard_set

Might be good to also add it to the web documentation. I think `pandas.io.clipboard` is currently not declared as a public module (from a typing perspective). It is not listed here
https://github.com/pandas-dev/pandas/blob/471319ba78c540766368a7a5e784ab20424ba9e1/pandas/io/__init__.py#L12

Would need to add `"clipboard"` to this list. (edit: and import it) I'm not 100% sure these helpers were ever supposed to be public (since a lot of this code is vendored from pyperclip anyways).

IMO for the original issue, I would just recommend passing the output of `to_html/to_latex/etc` to pyperclip directly. > I'm not 100% sure these helpers were ever supposed to be public (since a lot of this code is vendored from pyperclip anyways).
> 
> IMO for the original issue, I would just recommend passing the output of `to_html/to_latex/etc` to pyperclip directly.

yes I agree, since pandas just copies the pyperclip module (1.7.0) it is probably worth noting this and stating the user can just import the pyperclip module themselves.  thanks @attack68 