I need to apply a very simple \'match statement\' to the values in an xarray array:
xarray now supports .where(condition, other), so this is now valid:
.where(condition, other)
result = date_by_items.where(date_by_items > 0, 2)