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

   ### Rationale for this change
   
   The `FixedShapeTensorArray.from_numpy_ndarray` method did not pass 
`dim_names` to the `fixed_shape_tensor` constructor, which resulted in 
dimension names being lost when converting from a NumPy array. This change 
ensures that dimension names are properly preserved when constructing a tensor 
array from a NumPy ndarray.
   
   ### What changes are included in this PR?
   
   - Added an optional `dim_names` parameter to 
`FixedShapeTensorArray.from_numpy_ndarray`.
   - If provided, the `dim_names` are now passed to the `fixed_shape_tensor` 
constructor.
   
   ### Are these changes tested?
   
   - Existing tests pass, confirming no regressions to current functionality.
   - Additional unit tests have been added to verify that `dim_names` are 
correctly handled when specified.
   
   ### Are there any user-facing changes?
   
   - The method `FixedShapeTensorArray.from_numpy_ndarray` now accepts an 
optional `dim_names` argument.
   - This argument is optional, and the behavior remains unchanged when it is 
not provided.
   


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to