Skip to content

Commit ba8c19c

Browse files
committed
update doc
1 parent e63e359 commit ba8c19c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/using/methods.rst

+9-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,15 @@ statistics:
9191
}
9292
9393
Each entry is a NumPy vector with the same length as the number of
94-
variables. Use the ``name_to_index`` attribute to map variable names
95-
to indices.
94+
variables, each element corresponding to a variable. You can
95+
therefore use it like:
96+
97+
.. code:: python
98+
99+
values = ds[0]
100+
normalized = (values - dataset.statistics["mean"]) / dataset.statistics["stdev"])
101+
102+
Use the ``name_to_index`` attribute to map variable names to indices.
96103

97104
resolution:
98105
The dataset's resolution.

0 commit comments

Comments
 (0)