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

Function test_integer_no_nulls

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

Source from the content-addressed store, hash-verified

262
263@pytest.mark.pandas
264def test_integer_no_nulls(version):
265 data, arr = {}, []
266
267 numpy_dtypes = ['i1', 'i2', 'i4', 'i8',
268 'u1', 'u2', 'u4', 'u8']
269 num_values = 100
270
271 for dtype in numpy_dtypes:
272 values = np.random.randint(0, 100, size=num_values)
273 data[dtype] = values.astype(dtype)
274 arr.append(values.astype(dtype))
275
276 df = pd.DataFrame(data)
277 _check_pandas_roundtrip(df, version=version)
278
279 table = pa.table(arr, names=numpy_dtypes)
280 _check_arrow_roundtrip(table)
281
282
283@pytest.mark.pandas

Callers

nothing calls this directly

Calls 3

_check_arrow_roundtripFunction · 0.85
_check_pandas_roundtripFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected