File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3278,18 +3278,18 @@ def to_xarray(self):
32783278 2 lion mammal 80.5 4
32793279 3 monkey mammal NaN 4
32803280
3281- >>> df.to_xarray()
3281+ >>> df.to_xarray() # doctest: +SKIP
32823282 <xarray.Dataset>
32833283 Dimensions: (index: 4)
32843284 Coordinates:
3285- * index (index) int64 0 1 2 3
3285+ * index (index) int64 32B 0 1 2 3
32863286 Data variables:
3287- name (index) object 'falcon' 'parrot' 'lion' 'monkey'
3288- class (index) object 'bird' 'bird' 'mammal' 'mammal'
3289- max_speed (index) float64 389.0 24.0 80.5 nan
3290- num_legs (index) int64 2 2 4 4
3287+ name (index) object 32B 'falcon' 'parrot' 'lion' 'monkey'
3288+ class (index) object 32B 'bird' 'bird' 'mammal' 'mammal'
3289+ max_speed (index) float64 32B 389.0 24.0 80.5 nan
3290+ num_legs (index) int64 32B 2 2 4 4
32913291
3292- >>> df['max_speed'].to_xarray()
3292+ >>> df['max_speed'].to_xarray() # doctest: +SKIP
32933293 <xarray.DataArray 'max_speed' (index: 4)>
32943294 array([389. , 24. , 80.5, nan])
32953295 Coordinates:
@@ -3311,7 +3311,7 @@ class (index) object 'bird' 'bird' 'mammal' 'mammal'
33113311 2018-01-02 falcon 361
33123312 parrot 15
33133313
3314- >>> df_multiindex.to_xarray()
3314+ >>> df_multiindex.to_xarray() # doctest: +SKIP
33153315 <xarray.Dataset>
33163316 Dimensions: (date: 2, animal: 2)
33173317 Coordinates:
You can’t perform that action at this time.
0 commit comments