From 3814848291c60fafc71ec24fd4a326f9684bfa34 Mon Sep 17 00:00:00 2001 From: dcherian Date: Sat, 19 Sep 2020 11:42:08 -0600 Subject: [PATCH] Fix doctests --- xarray/core/combine.py | 2 +- xarray/core/groupby.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xarray/core/combine.py b/xarray/core/combine.py index d9ce3def673..5b3a8bef6a5 100644 --- a/xarray/core/combine.py +++ b/xarray/core/combine.py @@ -711,8 +711,8 @@ def combine_by_coords( Dimensions: (x: 3, y: 4) Coordinates: - * x (x) int64 10 20 30 * y (y) int64 0 1 2 3 + * x (x) int64 10 20 30 Data variables: temperature (y, x) float64 10.98 14.3 12.06 10.9 ... 1.743 0.4044 16.65 precipitation (y, x) float64 0.4376 0.8918 0.9637 ... 0.7992 0.4615 0.7805 diff --git a/xarray/core/groupby.py b/xarray/core/groupby.py index 5f328d7a03a..9cdd86e8122 100644 --- a/xarray/core/groupby.py +++ b/xarray/core/groupby.py @@ -607,8 +607,8 @@ def quantile( array([[0.7, 4.2, 0.7, 1.5], [6.5, 7.3, 2.6, 1.9]]) Coordinates: - quantile float64 0.0 * y (y) int64 1 1 2 2 + quantile float64 0.0 * x (x) int64 0 1 >>> ds.groupby("y").quantile(0, dim=...) @@ -630,8 +630,8 @@ def quantile( [2.6 , 2.6 , 2.6 ], [1.9 , 1.9 , 1.9 ]]]) Coordinates: - * quantile (quantile) float64 0.0 0.5 1.0 * y (y) int64 1 1 2 2 + * quantile (quantile) float64 0.0 0.5 1.0 * x (x) int64 0 1 >>> ds.groupby("y").quantile([0, 0.5, 1], dim=...)