Open jorisvandenbossche opened 1 year ago
Some that are still left:
=============================== warnings summary ===============================
opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_dataset.py::test_make_fragment
/opt/conda/envs/arrow/lib/python3.10/site-packages/numpy/core/fromnumeric.py:59: FutureWarning: 'DataFrame.swapaxes' is deprecated and will be removed in a future version. Please use 'DataFrame.transpose' instead.
return bound(*args, **kwds)
opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py::TestConvertMisc::test_category
opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py::TestConvertMisc::test_category
opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py::TestConvertMisc::test_category
/opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py:102: FutureWarning: Mismatched null-like values None and nan found. In a future version, pandas equality-testing functions (e.g. assert_frame_equal) will consider these not-matching and raise.
tm.assert_frame_equal(result, expected, check_dtype=check_dtype,
opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py::TestConvertMisc::test_category
opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py::TestConvertMisc::test_category
opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py::TestConvertMisc::test_category
/opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py:138: FutureWarning: Mismatched null-like values None and nan found. In a future version, pandas equality-testing functions (e.g. assert_frame_equal) will consider these not-matching and raise.
tm.assert_series_equal(pd.Series(result), expected, check_names=False)
I am doing some dataframe manipulation using pandas
and seeing FutureWarning: 'DataFrame.swapaxes'
as well:
/usr/local/lib/python3.11/dist-packages/numpy/core/fromnumeric.py:59: FutureWarning: 'DataFrame.swapaxes' is deprecated and will be removed in a future version. Please use 'DataFrame.transpose' instead.
return bound(*args, **kwds)
versions: numpy (1.26.1) pandas (2.1.2) arrow (1.3.0) Python 3.11.5
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)
Opened an issue on the pandas side about this: https://github.com/pandas-dev/pandas/issues/59776
The pandas nightly/upstream_devel builds show some warnings from pandas that we should address:
From https://github.com/ursacomputing/crossbow/actions/runs/5418026924/jobs/9849676474