I have an xarray, technically it\'s 3-dimensional, but let\'s limit it to 1d for this example:
import xarray as xr import pandas as pd import numpy as np tim