pydata__xarray-7393
stack casts int32 dtype coordinate to int64
Verdict: the fix is stated in the issue (Tier A).
def __array__(self, dtype: DTypeLike = None) -> np.ndarray: if dtype is None: dtype = self.dtype if self.level is not None: return np.asarray( self.array.get_level_values(self.level).values, dtype=dtype ) else: return super().__array__(dtype)
The text states the fix: “def __array__(self, dtype: DTypeLike = None) -> np.ndarray: if dtype is None: dtype = self.dtype if self.level is not None: return np.asarray( self.array.get_level_value…”
All SWE-bench Verified tasks · more pydata/xarray tasks · How the check works