File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,8 @@ setting) variables and attributes:
353
353
This is particularly useful in an exploratory context, because you can
354
354
tab-complete these variable names with tools like IPython.
355
355
356
+ .. _dictionary_like_methods :
357
+
356
358
Dictionary like methods
357
359
~~~~~~~~~~~~~~~~~~~~~~~
358
360
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ How do I ...
11
11
12
12
* - How do I...
13
13
- Solution
14
+ * - add a DataArray to my dataset as a new variable
15
+ - ``my_dataset[varname] = my_dataArray `` or :py:meth: `Dataset.assign ` (see also :ref: `dictionary_like_methods `)
14
16
* - add variables from other datasets to my dataset
15
17
- :py:meth: `Dataset.merge `
16
18
* - add a new dimension and/or coordinate
@@ -57,3 +59,4 @@ How do I ...
57
59
- ``obj.dt.ceil ``, ``obj.dt.floor ``, ``obj.dt.round ``. See :ref: `dt_accessor ` for more.
58
60
* - make a mask that is ``True `` where an object contains any of the values in a array
59
61
- :py:meth: `Dataset.isin `, :py:meth: `DataArray.isin `
62
+
You can’t perform that action at this time.
0 commit comments