MCPcopy Create free account
hub / github.com/datapane/datapane / assert_scalar_works

Function assert_scalar_works

python-client/tests/common/test_df_processor_2.py:22–26  ·  view source on GitHub ↗
(scalar)

Source from the content-addressed store, hash-verified

20
21
22def assert_scalar_works(scalar):
23 out_df = to_df(scalar)
24 assert out_df.columns == ["Result"]
25 assert len(out_df) == 1
26 assert out_df.iloc[0, 0] == scalar
27
28
29def test_to_df_df():

Callers 9

test_to_df_intFunction · 0.85
test_to_df_floatFunction · 0.85
test_to_df_boolFunction · 0.85
test_to_df_strFunction · 0.85
test_to_df_numpy_scalerFunction · 0.85
test_to_df_numpy_boolFunction · 0.85
test_to_df_datetimeFunction · 0.85
test_to_df_timedeltaFunction · 0.85

Calls 1

to_dfFunction · 0.90

Tested by

no test coverage detected