File tree 1 file changed +8
-8
lines changed
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):
3278
3278
2 lion mammal 80.5 4
3279
3279
3 monkey mammal NaN 4
3280
3280
3281
- >>> df.to_xarray()
3281
+ >>> df.to_xarray() # doctest: +SKIP
3282
3282
<xarray.Dataset>
3283
3283
Dimensions: (index: 4)
3284
3284
Coordinates:
3285
- * index (index) int64 0 1 2 3
3285
+ * index (index) int64 32B 0 1 2 3
3286
3286
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
3291
3291
3292
- >>> df['max_speed'].to_xarray()
3292
+ >>> df['max_speed'].to_xarray() # doctest: +SKIP
3293
3293
<xarray.DataArray 'max_speed' (index: 4)>
3294
3294
array([389. , 24. , 80.5, nan])
3295
3295
Coordinates:
@@ -3311,7 +3311,7 @@ class (index) object 'bird' 'bird' 'mammal' 'mammal'
3311
3311
2018-01-02 falcon 361
3312
3312
parrot 15
3313
3313
3314
- >>> df_multiindex.to_xarray()
3314
+ >>> df_multiindex.to_xarray() # doctest: +SKIP
3315
3315
<xarray.Dataset>
3316
3316
Dimensions: (date: 2, animal: 2)
3317
3317
Coordinates:
You can’t perform that action at this time.
0 commit comments