Skip to content

[Python] Limit the size of the repr for large Tables #30333

@asfimport

Description

@asfimport

The new repr is nice that it shows a preview of the data, but this can also become very long flooding your console output for larger tables.

We already default to 10 preview cols, but each column can still consist of many chunks. So it might be good to also limit it to 2 chunks?

The ChunkedArray.to_string method already has a window keyword, but that seems to control both the number of elements to show per chunk as the number of chunks (while it would be nice to limit eg to 2 chunks but show up to 10 elements for each chunk).

cc @amol-

Reporter: Will Jones / @wjones127
Assignee: Will Jones / @wjones127

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-14798. 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