Leaklens

pydata__xarray-2905

Variable.__setitem__ coercing types on objects with a values property

Verdict: the fix is stated in the issue (Tier A).

We could probably change that line to something like: ``` if isinstance(data, (pd.Series, pd.Index, pd.DataFrame)): data = data.values ```

The text states the fix: “We could probably change that line to something like: ``` if isinstance(data, (pd.Series, pd.Index, pd.DataFrame)): data = data.values ```”

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