We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pandas
pandas=3.0
1 parent adc01be commit baee201Copy full SHA for baee201
properties/test_pandas_roundtrip.py
@@ -9,6 +9,7 @@
9
import pytest
10
11
import xarray as xr
12
+from xarray.tests import has_pandas_3
13
14
pytest.importorskip("hypothesis")
15
import hypothesis.extra.numpy as npst # isort:skip
@@ -110,6 +111,10 @@ def test_roundtrip_pandas_dataframe(df) -> None:
110
111
xr.testing.assert_identical(arr, roundtripped.to_xarray())
112
113
114
+@pytest.mark.skipif(
115
+ has_pandas_3,
116
+ reason="fails to roundtrip on pandas 3 (see https://github.com/pydata/xarray/issues/9098)",
117
+)
118
@given(df=dataframe_strategy)
119
def test_roundtrip_pandas_dataframe_datetime(df) -> None:
120
# Need to name the indexes, otherwise Xarray names them 'dim_0', 'dim_1'.
0 commit comments