Closed
Description
When looking at #5691 I noticed that the labels are sometimes coerced to arrays (i.e., #3153) but not always.
Later in PandasIndex.query
those may again be coerced to arrays (i.e., _as_array_tuplesafe
). In #5692 (a551c7f) they are always coerced to arrays before maybe be converted as scalars.
Shouldn't we therefore make things easier and ensure that the labels given to xarray.Index.query()
always have an array interface? This would also yield a more predictable behavior to anyone who wants to implement custom xarray indexes.