-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-13783. [Python] Preview data when printing tables #11028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cpp/src/arrow/pretty_print.cc
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to fix a bug in printing arrays that lead to
[10,20,30,40 ]
instead of
[10,20,30,40]
when skip_new_lines=True
pitrou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR!
- Can you rebase on master?
- Here are some comments.
|
@pitrou I should have addressed all your comments |
pitrou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates!
| c0: int16 | ||
| c1: int32 | ||
| ---- | ||
| c0: [[1,2,3,4]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Late comment: I initially found those double square brackets quite confusing (why are there double brackets? Is it a list array of one element?)
(I understand this this is because each column is a ChunkedArray (and the string formatting is coming from there), and so you can have multiple chunks in the column. So also not necessarily something that can be done about this)
Closes apache#11028 from amol-/ARROW-13783 Authored-by: Alessandro Molina <amol@turbogears.org> Signed-off-by: Antoine Pitrou <antoine@python.org>
No description provided.