You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/10/06 16:14:00 UTC
[jira] [Comment Edited] (ARROW-14242) [Python] Array.to_string
exposes confusing "indent" parameter
[ https://issues.apache.org/jira/browse/ARROW-14242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17425064#comment-17425064 ]
Antoine Pitrou edited comment on ARROW-14242 at 10/6/21, 4:13 PM:
------------------------------------------------------------------
cc [~amol-] opinions ?
was (Author: pitrou):
cc @amol- opinions ?
> [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
>
> 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.3.4#803005)