Skip to content

Commit

Permalink
Add note about accessor instance creation (#3209)
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese authored and shoyer committed Aug 14, 2019
1 parent c782637 commit 2fdcbb6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/internals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ reasons:
functionality that clearly identifies it as separate from built-in xarray
methods.

.. note::

Accessors are created once per DataArray and Dataset instance. New
instances, like those created from arithmetic operations or when accessing
a DataArray from a Dataset (ex. ``ds[var_name]``), will have new
accessors created.

Back in an interactive IPython session, we can use these properties:

.. ipython:: python
Expand Down

0 comments on commit 2fdcbb6

Please sign in to comment.