Leaklens

pydata__xarray-4695

Naming a dimension "method" throws error when calling ".loc"

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

I think this could be fixed simply by replacing `self.data_array.sel(**key)` with `self.data_array.sel(key)` on this line in `_LocIndexer.__getitem__`

The text states the fix: “I think this could be fixed simply by replacing `self.data_array.sel(**key)` with `self.data_array.sel(key)` on this line in `_LocIndexer.__getitem__`”

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