jorisvandenbossche commented on a change in pull request #11028:
URL: https://github.com/apache/arrow/pull/11028#discussion_r728883471
##########
File path: python/pyarrow/tests/test_table.py
##########
@@ -1591,6 +1594,40 @@ def test_table_repr_to_string():
-- schema metadata --
foo: 'bar'"""
+ assert tab.to_string(preview_cols=5) == """\
+pyarrow.Table
+c0: int16
+c1: int32
+----
+c0: [[1,2,3,4]]
Review comment:
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)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]