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

Function test_boolean_nulls

python/pyarrow/tests/test_feather.py:337–352  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

335
336@pytest.mark.pandas
337def test_boolean_nulls(version):
338 # pandas requires upcast to object dtype
339 path = random_path()
340 TEST_FILES.append(path)
341
342 num_values = 100
343 np.random.seed(0)
344
345 mask = np.random.randint(0, 10, size=num_values) < 3
346 values = np.random.randint(0, 10, size=num_values) < 5
347
348 table = pa.table([pa.array(values, mask=mask)], names=['bools'])
349 _check_arrow_roundtrip(table)
350
351 df = table.to_pandas()
352 _check_pandas_roundtrip(df, version=version)
353
354
355def test_buffer_bounds_error(version):

Callers

nothing calls this directly

Calls 5

random_pathFunction · 0.85
_check_arrow_roundtripFunction · 0.85
_check_pandas_roundtripFunction · 0.70
appendMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected