[
https://issues.apache.org/jira/browse/ARROW-14242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17451908#comment-17451908
]
Alessandro Molina commented on ARROW-14242:
-------------------------------------------
I agree with the description, I think that the expected behaviour (from user
point of view) is to indent the internal items, not to indent the whole string.
> [Python] Array.to_string exposes confusing "indent" parameter
> -------------------------------------------------------------
>
> Key: ARROW-14242
> URL: https://issues.apache.org/jira/browse/ARROW-14242
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: David Li
> Priority: Major
> Labels: good-first-issue
> Fix For: 7.0.0
>
>
> Despite the description, the "indent" parameter of Array.to_string [indents
> the entire string, not the
> items|https://github.com/apache/arrow/pull/11339#issuecomment-936571361] as
> one might expect by analogy to (for instance) json.dump(s). It should pass
> this parameter to PrettyPrintOptions.indent_size, not indent.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)