From f5d0cb2341dc116e1986e53d184126d86285abb9 Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Tue, 25 Sep 2018 08:45:27 -0700 Subject: [PATCH] Remove incorrect statement about "drop" in the text docs As pointed out by FaustinCarter in GH1949 --- doc/data-structures.rst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/doc/data-structures.rst b/doc/data-structures.rst index 10d83ca448f..618ccccff3e 100644 --- a/doc/data-structures.rst +++ b/doc/data-structures.rst @@ -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: