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

   ### Rationale for this change
   
   pandas 3.0.0 deprecated constructing or casting to a `Categorical` with
   non-NA values that are not present in the specified `dtype.categories`. 
   This surfaces as DeprecationWarnings in the PyArrow
   test suite when run against pandas >= 3.0 (GH-49255), in test_category
   and test_category_implicit_from_pandas.
   
   ### What changes are included in this PR?
   
   - test_category: remove the `cat_strings_with_na` column (relied on
     silent 'qux' -> NaN; redundant, cat_strings already carries nulls).
   - test_category_implicit_from_pandas: use explicit None
     (['a','b',None]) instead of out-of-category 'c'.
   
   ### Are these changes tested?
   Yes - test-only. Verified no DeprecationWarning under pandas 3.0.3.
   
   ### Are there any user-facing changes?
   No.
   
   Closes #49255.


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