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

Function test_nulls

python/pyarrow/tests/test_array.py:364–374  ·  view source on GitHub ↗
(ty)

Source from the content-addressed store, hash-verified

362 pa.string()
363])
364def test_nulls(ty):
365 arr = pa.nulls(3, type=ty)
366 expected = pa.array([None, None, None], type=ty)
367
368 assert len(arr) == 3
369 assert arr.equals(expected)
370
371 if ty is None:
372 assert arr.type == pa.null()
373 else:
374 assert arr.type == ty
375
376
377def test_array_from_scalar():

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected