Skip to content

Commit

Permalink
Remove incorrect statement about "drop" in the text docs (#2439)
Browse files Browse the repository at this point in the history
As pointed out by FaustinCarter in GH1949
  • Loading branch information
shoyer authored and dcherian committed Sep 27, 2018
1 parent 96dde66 commit 78058e2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions doc/data-structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,6 @@ operations keep around coordinates:
list(ds[['x']])
list(ds.drop('temperature'))
If a dimension name is given as an argument to ``drop``, it also drops all
variables that use that dimension:

.. ipython:: python
list(ds.drop('time'))
As an alternate to dictionary-like modifications, you can use
:py:meth:`~xarray.Dataset.assign` and :py:meth:`~xarray.Dataset.assign_coords`.
These methods return a new dataset with additional (or replaced) or values:
Expand Down

0 comments on commit 78058e2

Please sign in to comment.