Skip to content

[Python] Table.from_pandas does not create chunked_arrays. #18190

@asfimport

Description

@asfimport

When creating a large enough array, pyarrow raises an exception:

import numpy as np
import pandas as pd
import pyarrow as pa

x = list('1' * 2**31)
y = pd.DataFrame({'x': x})
t = pa.Table.from_pandas(y)
# ArrowInvalid: BinaryArrow cannot contain more than 2147483646 bytes, have 2147483647

The array should be chunked for the user. As is, data frames with >2 GiB in binary data will struggle to get into arrow.

Reporter: Left Screen
Assignee: Wes McKinney / @wesm

Related issues:

Externally tracked issue: #1673

PRs and other links:

Note: This issue was originally created as ARROW-2227. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions