(constructor)
| 466 | |
| 467 | |
| 468 | def test_int_col_names(constructor): |
| 469 | # DataFrame with int column names |
| 470 | lengths = constructor({"0": np.random.random(100)}) |
| 471 | fig = px.histogram(lengths, x="0") |
| 472 | assert np.all(nw.from_native(lengths).to_numpy().flatten() == fig.data[0].x) |
| 473 | # Numpy array |
| 474 | ar = np.arange(100).reshape((10, 10)) |
| 475 | fig = px.scatter(ar, x=2, y=8) |
| 476 | assert np.all(fig.data[0].x == ar[:, 2]) |
| 477 | |
| 478 | |
| 479 | def test_data_frame_from_dict(): |
nothing calls this directly
no test coverage detected