You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "AlenkaF (via GitHub)" <gi...@apache.org> on 2025/03/03 13:25:36 UTC

Re: [I] [Python] - Schema inference from pandas reorders struct fields [arrow]

AlenkaF commented on issue #45640:
URL: https://github.com/apache/arrow/issues/45640#issuecomment-2694382998

   Yes, looking at the linked issue and the comment from Joris, I would suspect that the fields in the struct created from pandas struct column are sorted "due to the fact that we use a `std::map` in C++" which might be found here https://github.com/apache/arrow/blob/0fbf9823542233c5f32c26534c34cc97ce3f0be2/python/pyarrow/src/arrow/python/inference.cc#L702
   We should better document that.
   
   I suggest to keep the linked (https://github.com/apache/arrow/issues/34250) issue open and close this one. It would be worth adding additional information from linked issue to the docs also.


-- 
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-unsubscribe@arrow.apache.org

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