MCPcopy Create free account
hub / github.com/apache/arrow / test_map_scalar_with_empty_values

Function test_map_scalar_with_empty_values

python/pyarrow/tests/test_scalars.py:988–998  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

986
987
988def test_map_scalar_with_empty_values():
989 map_type = pa.struct(
990 [
991 pa.field('x', pa.map_(pa.string(), pa.string())),
992 ]
993 )
994
995 v = {'x': {}}
996 s = pa.scalar(v, type=map_type)
997
998 assert s.as_py(maps_as_pydicts="strict") == v
999
1000
1001def test_arithmetic_dunders():

Callers

nothing calls this directly

Calls 4

as_pyMethod · 0.80
fieldMethod · 0.45
stringMethod · 0.45
scalarMethod · 0.45

Tested by

no test coverage detected