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

Function test_to_pandas_split_blocks

python/pyarrow/tests/test_pandas.py:3919–3933  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3917
3918
3919def test_to_pandas_split_blocks():
3920 # ARROW-3789
3921 t = pa.table([
3922 pa.array([1, 2, 3, 4, 5]*100, type='i1'),
3923 pa.array([1, 2, 3, 4, 5]*100, type='i4'),
3924 pa.array([1, 2, 3, 4, 5]*100, type='i8'),
3925 pa.array([1, 2, 3, 4, 5]*100, type='f4'),
3926 pa.array([1, 2, 3, 4, 5]*100, type='f8'),
3927 pa.array([1, 2, 3, 4, 5]*100, type='f8'),
3928 pa.array([1, 2, 3, 4, 5]*100, type='f8'),
3929 pa.array([1, 2, 3, 4, 5]*100, type='f8'),
3930 ], [f'f{i}' for i in range(8)])
3931
3932 _check_blocks_created(t, 8)
3933 _check_to_pandas_memory_unchanged(t, split_blocks=True)
3934
3935
3936def _get_mgr(df):

Callers

nothing calls this directly

Calls 3

_check_blocks_createdFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected