MCPcopy Create free account
hub / github.com/holoviz/hvplot / test_max_rows_sample

Function test_max_rows_sample

hvplot/tests/testui.py:415–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413
414@pytest.mark.usefixtures('disable_param_warnings_as_exceptions')
415def test_max_rows_sample():
416 N = 100001
417 x = np.linspace(0.0, 6.4, num=N)
418 y = np.sin(x) + 10
419 df = pd.DataFrame({'x': x, 'y': y})
420 ui = hvplot.explorer(df, x='x', y='y', by=['#'], kind='scatter')
421 assert len(ui._data) == MAX_ROWS
422 assert not ui._data.equals(df.head(MAX_ROWS))
423
424
425def test_explorer_geo_no_import_error_when_false():

Callers

nothing calls this directly

Calls 1

explorerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…