You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/12/08 16:55:14 UTC

[GitHub] [arrow] marlenezw commented on a change in pull request #11873: ARROW-14242: Exposing the correct `indent` paramenter in `to_string`

marlenezw commented on a change in pull request #11873:
URL: https://github.com/apache/arrow/pull/11873#discussion_r765048809



##########
File path: python/pyarrow/array.pxi
##########
@@ -1028,8 +1031,10 @@ cdef class Array(_PandasConvertible):
             PrettyPrintOptions options
 
         with nogil:
-            options = PrettyPrintOptions(indent, window)
+            options = PrettyPrintOptions(top_level_indent, window)
             options.skip_new_lines = skip_new_lines
+            if indent is not 0:
+                options.indent_size = indent

Review comment:
       That sounds good! I'll set the default as 2 for the moment! 




-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org