jorisvandenbossche commented on a change in pull request #11873:
URL: https://github.com/apache/arrow/pull/11873#discussion_r765922898
##########
File path: python/pyarrow/array.pxi
##########
@@ -1005,16 +1005,19 @@ cdef class Array(_PandasConvertible):
type_format = object.__repr__(self)
return '{0}\n{1}'.format(type_format, str(self))
- def to_string(self, *, int indent=0, int window=10,
+ def to_string(self, *, int indent=2, int top_level_indent=0, int window=10,
c_bool skip_new_lines=False):
"""
Render a "pretty-printed" string representation of the Array.
Parameters
----------
indent : int
Review comment:
```suggestion
indent : int, default 2
```
##########
File path: python/pyarrow/array.pxi
##########
@@ -1005,16 +1005,19 @@ cdef class Array(_PandasConvertible):
type_format = object.__repr__(self)
return '{0}\n{1}'.format(type_format, str(self))
- def to_string(self, *, int indent=0, int window=10,
+ def to_string(self, *, int indent=2, int top_level_indent=0, int window=10,
c_bool skip_new_lines=False):
"""
Render a "pretty-printed" string representation of the Array.
Parameters
----------
indent : int
- How much to indent right the content of the array,
- by default ``0``.
+ How much to indent the internal items in the string to
+ the right, by default ``2``.
+ top_level_indent : int
Review comment:
```suggestion
top_level_indent : int, default 0
```
--
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]