()
| 3129 | |
| 3130 | |
| 3131 | def test_asanyarray_dataframe(): |
| 3132 | pd = pytest.importorskip("pandas") |
| 3133 | dd = pytest.importorskip("dask.dataframe") |
| 3134 | |
| 3135 | df = pd.DataFrame({"x": [1, 2, 3]}) |
| 3136 | ddf = dd.from_pandas(df, npartitions=2) |
| 3137 | |
| 3138 | x = np.asanyarray(df) |
| 3139 | dx = da.asanyarray(ddf) |
| 3140 | assert isinstance(dx, da.Array) |
| 3141 | |
| 3142 | assert_eq(x, dx) |
| 3143 | |
| 3144 | x = np.asanyarray(df.x) |
| 3145 | dx = da.asanyarray(ddf.x) |
| 3146 | assert isinstance(dx, da.Array) |
| 3147 | |
| 3148 | assert_eq(x, dx) |
| 3149 | |
| 3150 | |
| 3151 | def test_asanyarray_datetime64(): |
nothing calls this directly
no test coverage detected