```python # numpy version x = np.array([0, 1]) np.place(x, x == 0, 1) # pandas version pd.Series([0, 1]).map({0: 1, 1: 1}) # current workaround ds = xr.Dataset({'test': [0, 1]}) np.place(ds['test'].values, ds['test'].values == 0, 1) ``` #### Problem description Is there a built in method to map values like 0 to 1? #### Expected Output returns `[1, 1]`