jorisvandenbossche opened a new pull request, #51484:
URL: https://github.com/apache/arrow/pull/51484
### Rationale for this change
Pandas has deprecated certain aspects of `.values` (when it looses
information), which our pandas->pyarrow conversion currently relies upon. So
updating that code path to avoid this usage.
### What changes are included in this PR?
Removed usage of `.values` for the deprecated cases (period, interval,
datetimetz). In the custom `get_values`, we already avoided this for period and
interval, added a special case for converting datetimetz to a numpy array. And
ensured that other cases were we did a direct `.values` goes through this
`get_values` helper.
### Are these changes tested?
Yes, I added more tests first to ensure full coverage of all cases that
might run into the deprecation (e.g. the `Schema.from_pandas(df)` or
`pa.array(EA)` with period/datetimetz dtypes were not currently covered)
### Are there any user-facing changes?
No
### Was AI used for this PR?
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]