You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jorisvandenbossche (via GitHub)" <gi...@apache.org> on 2024/06/05 14:59:31 UTC

Re: [I] [Python][CI] Fix deprecation warnings in the pandas nightly build [arrow]

jorisvandenbossche commented on issue #36412:
URL: https://github.com/apache/arrow/issues/36412#issuecomment-2150293032

   Currently, the only remaining warnings in the pandas nightly builds are :
   
   ```
   opt/conda/envs/arrow/lib/python3.11/site-packages/pyarrow/tests/test_pandas.py::TestConvertMetadata::test_empty_list_metadata
   opt/conda/envs/arrow/lib/python3.11/site-packages/pyarrow/tests/test_pandas.py::TestConvertListTypes::test_empty_list_roundtrip
     /opt/conda/envs/arrow/lib/python3.11/site-packages/pandas/core/dtypes/missing.py:503: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
       return lib.array_equivalent_object(left, right)
   
   opt/conda/envs/arrow/lib/python3.11/site-packages/pyarrow/tests/test_pandas.py: 2 warnings
   opt/conda/envs/arrow/lib/python3.11/site-packages/pyarrow/tests/parquet/test_data_types.py: 3 warnings
   opt/conda/envs/arrow/lib/python3.11/site-packages/pyarrow/tests/parquet/test_pandas.py: 2 warnings
   opt/conda/envs/arrow/lib/python3.11/site-packages/pyarrow/tests/parquet/test_parquet_file.py: 6 warnings
     /opt/conda/envs/arrow/lib/python3.11/site-packages/pandas/core/dtypes/missing.py:504: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
       if not lib.array_equivalent_object(left[~mask], right[~mask]):
   ```
   
   I assume those warnings are actually coming from numpy, but are raised in the pandas function we use (would have to look in more detail to see if this is an issue that should be fixed in pandas, or in how we use the pandas function)
   


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