Open
Description
Noting down a comment by @danjonesocean on Twitter: https://twitter.com/DanJonesOcean/status/1441392596362874882
In general, having more examples on each xarray page (like the one below) would be good. Then they would come up quickly in function searches:
http://xarray.pydata.org/en/stable/generated/xarray.Dataset.merge.html#xarray.Dataset.merge
Our API docs are generated by the function docstrings, and these are usually the first thing users hit when they search for functions. However, these docstring uniformly lack examples, often leaving users stuck.
I see two ways to mitigate this:
- Add examples directly to the docstings (suggested by @jklymak)
- Cross reference other examples from the user guide or other tutorials