Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
def
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
29
def
test_to_df_df():
Callers
9
test_to_df_int
Function · 0.85
test_to_df_float
Function · 0.85
test_to_df_bool
Function · 0.85
test_to_df_str
Function · 0.85
test_to_df_numpy_scaler
Function · 0.85
test_to_df_numpy_bool
Function · 0.85
test_to_df_datetime
Function · 0.85
test_to_df_datetime_timezoned
Function · 0.85
test_to_df_timedelta
Function · 0.85
Calls
1
to_df
Function · 0.90
Tested by
no test coverage detected