()
| 10 | |
| 11 | |
| 12 | def test_interchange_protocol(): |
| 13 | pdf = pd.DataFrame({"a": [1, 2, 3], "b": 1}) |
| 14 | df = from_pandas(pdf, npartitions=2) |
| 15 | df_int = df.__dataframe__() |
| 16 | pd.testing.assert_index_equal(pdf.columns, df_int.column_names()) |
| 17 | assert df_int.num_columns() == 2 |
| 18 | assert df_int.num_rows() == 3 |
| 19 | column = df_int.get_columns()[0] |
| 20 | assert column.dtype()[0] == DtypeKind.INT |
nothing calls this directly
no test coverage detected