Spenserrrr opened a new pull request, #58433:
URL: https://github.com/apache/spark/pull/58433

   ### What changes were proposed in this pull request?
   
   Adds `PyArrowTableFromPandasTests` to 
`test_pyarrow_dataframe_from_pandas.py`, covering `pa.Table.from_pandas` across 
`preserve_index` and pinning each column's chunk count. This completes the 
DataFrame-input `from_pandas` constructors alongside the existing RecordBatch 
and Schema tests.
   
   ### Why are the changes needed?
   
   `Table.from_pandas` is the only one of the three that accepts a 
chunked-backed pandas column, because a Table column is a `ChunkedArray` -- 
`RecordBatch.from_pandas` rejects the same input with `TypeError: Cannot 
convert ChunkedArray to Array`. Neither that difference nor the chunk counts a 
Table preserves was pinned anywhere.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Test-only.
   
   ### How was this patch tested?
   
   New golden-file test `PyArrowTableFromPandasTests.test_from_pandas`, 
verified across pyarrow 18-25 x pandas 2/3 with no version overrides needed.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 5)
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to