mirror of https://github.com/pyodide/pyodide.git
10 lines
265 B
Python
10 lines
265 B
Python
![]() |
from pyodide_test_runner import run_in_pyodide
|
||
|
|
||
|
|
||
|
@run_in_pyodide(packages=["xarray"])
|
||
|
def test_xarray():
|
||
|
import xarray as xr
|
||
|
|
||
|
da = xr.DataArray(data=[[0, 1, 2], [3, 4, 5]], dims=("x", "y"))
|
||
|
xr.testing.assert_equal(a=da.mean(), b=xr.DataArray(data=2.5))
|