Leaklens

pydata__xarray-3305

DataArray.quantile does not honor `keep_attrs`

Verdict: the issue points to the file or function that was changed (Tier B).

Looking at the code, I'm confused. The DataArray.quantile method creates a temporary dataset, copies the variable over, calls the Variable.quantile method, then assigns the attributes from the dataset to this new variable. At no point however are attributes assigned to this temporary dataset.

The text points to the exact place to change: “Looking at the code, I'm confused. The DataArray.quantile method creates a temporary dataset, copies the variable over, calls the Variable.quantile method, then assigns…”

All SWE-bench Verified tasks · more pydata/xarray tasks · How the check works