22Quickstart
33##########
44
5- Here is a quick overview of what xray's :py:class: ` ~xray.DataArray ` object can
6- do. For more details, refer to the relevant sections in the remainder of the
7- documentation.
5+ Here are some quick examples of what you can do with xray's
6+ :py:class: ` ~xray.DataArray ` object. Everything is explained in much more
7+ detail in the rest of the documentation.
88
99To begin, import numpy, pandas and xray:
1010
@@ -17,6 +17,8 @@ To begin, import numpy, pandas and xray:
1717 Create a DataArray
1818------------------
1919
20+ For more details, see :ref: `data structures `.
21+
2022From scratch
2123~~~~~~~~~~~~
2224
@@ -38,8 +40,8 @@ From pandas
3840 foo = xray.DataArray(df, name = ' foo' )
3941 foo
4042
41- DataArray properties
42- --------------------
43+ Properties
44+ ----------
4345
4446.. ipython :: python
4547
@@ -51,6 +53,8 @@ DataArray properties
5153 Indexing
5254--------
5355
56+ For more details, see :ref: `indexing `.
57+
5458Like numpy
5559~~~~~~~~~~
5660
@@ -79,8 +83,10 @@ By dimension name and coordinate label
7983
8084 foo.sel(x = [' a' , ' b' ])
8185
82- Calculations
83- ------------
86+ Computation
87+ -----------
88+
89+ For more details, see :ref: `comput `.
8490
8591Unary operations
8692~~~~~~~~~~~~~~~~
@@ -110,6 +116,8 @@ Binary operations
110116 GroupBy
111117-------
112118
119+ For more details, see :ref: `groupby `.
120+
113121.. ipython :: python
114122
115123 labels = xray.DataArray([' E' , ' F' , ' E' ], [foo.coords[' y' ]], name = ' labels' )
@@ -120,6 +128,8 @@ GroupBy
120128 Convert to pandas
121129-----------------
122130
131+ For more details, see :ref: `pandas `.
132+
123133.. ipython :: python
124134
125135 foo.to_dataframe()
0 commit comments