def _sanitize(*arrs):
    mask = np.ones(arrs[0].shape, dtype=np.bool)
    for a in arrs:
        try:
            mask &= (~np.isnan(a))
        except __HOLE__:  # non-numeric dtype
            pass

    return tuple(a[mask].ravel() for a in arrs)
dataset/ETHPy150Open glue-viz/glue/glue/plugins/export_plotly.py/_sanitize