jorisvandenbossche opened a new pull request, #41449:
URL: https://github.com/apache/arrow/pull/41449

   ### Rationale for this change
   
   See the issue https://github.com/apache/arrow/issues/15053 for some more 
context, but in summary: for the "center" padding, and the number of characters 
that are being added, one needs to decide whether to add one more character on 
the left or right. Our implementation (somewhat randomly, I think) decided to 
put the extra space on the right. 
   The Python standard library however, puts the extra space on the left. And 
for the usage of pyarrow as a string compute engine in the pandas project, we 
would like to have the option to have consistent behaviour with Python.
   
   ### What changes are included in this PR?
   
   Add an option `align_left_on_odd_padding` to `PadOptions` that controls 
where the extra space is put. This keyword is quite ugly, but I am not sure 
what other solution there is if we want to give pyarrow users this option (also 
happy to hear other argument name options)
   
   ### Are these changes tested?
   
   Yes
   
   ### Are there any user-facing changes?
   No


-- 
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]

Reply via email to