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

   ### Rationale for this change
   
   The current docstring for `pyarrow.compute.scalar()` is incomplete and 
potentially misleading. It states that it only accepts "a subset of types" when 
in reality it accepts any value that can be converted to a `pyarrow.Scalar`. 
Additionally, there's no clear explanation of the difference between 
`pyarrow.scalar()` and `pyarrow.compute.scalar()`, which can be confusing for 
users since both functions have the same name but serve different purposes.
   
   ### What changes are included in this PR?
   
   This PR updates the docstring for `pyarrow.compute.scalar()` to clarify that 
it accepts any value convertible to a `pyarrow.Scalar` and add a detailed 
explanation of the difference between `pyarrow.scalar()` and 
`pyarrow.compute.scalar()`
   
   ### Are these changes tested?
   
   via CI.
   
   ### 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