Commits


Ray Zhang authored and GitHub committed a7e2147ae0a
GH-36933: [Python] Pointless ellipsis in array repr (#37168) ### Rationale for this change Explained in the issue ### What changes are included in this PR? Added a check when adding ellipsis to see if the ellipsis is meaningful. Rewrite some of tests affected by this change. ### Are these changes tested? Yes ### Are there any user-facing changes? Yes, if the window = 2 and the array is [1, 2, 3, 4, 5], its print will be [1, 2, 3, 4, 5] instead of [1, 2, ..., 4, 5] * Closes: #36933 Authored-by: Ray Zhang <m@raycursive.com> Signed-off-by: David Li <li.davidm96@gmail.com>