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

Function test_integer_no_nulls

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

Source from the content-addressed store, hash-verified

255
256@pytest.mark.pandas
257def test_integer_no_nulls(version):
258 data, arr = {}, []
259
260 numpy_dtypes = ['i1', 'i2', 'i4', 'i8',
261 'u1', 'u2', 'u4', 'u8']
262 num_values = 100
263
264 for dtype in numpy_dtypes:
265 values = np.random.randint(0, 100, size=num_values)
266 data[dtype] = values.astype(dtype)
267 arr.append(values.astype(dtype))
268
269 df = pd.DataFrame(data)
270 _check_pandas_roundtrip(df, version=version)
271
272 table = pa.table(arr, names=numpy_dtypes)
273 _check_arrow_roundtrip(table)
274
275
276@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