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 @@ -3120,18 +3120,18 @@ def to_xarray(self):
3120
3120
2 lion mammal 80.5 4
3121
3121
3 monkey mammal NaN 4
3122
3122
3123
- >>> df.to_xarray()
3123
+ >>> df.to_xarray() # doctest: +SKIP
3124
3124
<xarray.Dataset>
3125
3125
Dimensions: (index: 4)
3126
3126
Coordinates:
3127
- * index (index) int64 0 1 2 3
3127
+ * index (index) int64 32B 0 1 2 3
3128
3128
Data variables:
3129
- name (index) object 'falcon' 'parrot' 'lion' 'monkey'
3130
- class (index) object 'bird' 'bird' 'mammal' 'mammal'
3131
- max_speed (index) float64 389.0 24.0 80.5 nan
3132
- num_legs (index) int64 2 2 4 4
3129
+ name (index) object 32B 'falcon' 'parrot' 'lion' 'monkey'
3130
+ class (index) object 32B 'bird' 'bird' 'mammal' 'mammal'
3131
+ max_speed (index) float64 32B 389.0 24.0 80.5 nan
3132
+ num_legs (index) int64 32B 2 2 4 4
3133
3133
3134
- >>> df["max_speed"].to_xarray()
3134
+ >>> df["max_speed"].to_xarray() # doctest: +SKIP
3135
3135
<xarray.DataArray 'max_speed' (index: 4)>
3136
3136
array([389. , 24. , 80.5, nan])
3137
3137
Coordinates:
@@ -3157,7 +3157,7 @@ class (index) object 'bird' 'bird' 'mammal' 'mammal'
3157
3157
2018-01-02 falcon 361
3158
3158
parrot 15
3159
3159
3160
- >>> df_multiindex.to_xarray()
3160
+ >>> df_multiindex.to_xarray() # doctest: +SKIP
3161
3161
<xarray.Dataset>
3162
3162
Dimensions: (date: 2, animal: 2)
3163
3163
Coordinates:
You can’t perform that action at this time.
0 commit comments