[ https://issues.apache.org/jira/browse/ARROW-3269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17660292#comment-17660292 ]
Rok Mihevc commented on ARROW-3269: ----------------------------------- This issue has been migrated to [issue #19609|https://github.com/apache/arrow/issues/19609] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [Python] Fix warnings in unit test suite > ---------------------------------------- > > Key: ARROW-3269 > URL: https://issues.apache.org/jira/browse/ARROW-3269 > Project: Apache Arrow > Issue Type: Improvement > Components: Python > Reporter: Wes McKinney > Assignee: Krisztian Szucs > Priority: Major > Labels: pull-request-available > Fix For: 0.11.0 > > Time Spent: 1h > Remaining Estimate: 0h > > Observed in recent appveyor build > https://ci.appveyor.com/project/pitrou/arrow/build/job/c6b3pslhqag1gnw7 > {code} > ============================== warnings summary > =============================== > <unknown>:1396: DeprecationWarning: invalid escape sequence \( > <unknown>:1401: DeprecationWarning: invalid escape sequence \( > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\formatting.py:32: > FutureWarning: array_format is deprecated, use Array.format() instead > FutureWarning) > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\formatting.py:32: > FutureWarning: array_format is deprecated, use Array.format() instead > FutureWarning) > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\formatting.py:32: > FutureWarning: array_format is deprecated, use Array.format() instead > FutureWarning) > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > source:1396: DeprecationWarning: invalid escape sequence \( > source:1401: DeprecationWarning: invalid escape sequence \( > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > FutureWarning: In the future, NAT != NAT will be True rather than False. > if left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > DeprecationWarning: elementwise != comparison failed; this will raise an > error in the future. > if left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\tests\test_convert_pandas.py:2076: > RuntimeWarning: invalid value encountered in sqrt > _check_series(pd.Series([np.sqrt(-1)] * 3, dtype=object)) > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\tests\test_ipc.py:298: > FutureWarning: Please use read_next_batch instead of get_next_batch > reader.get_next_batch() > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > FutureWarning: In the future, NAT != NAT will be True rather than False. > if left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > FutureWarning: In the future, NAT != NAT will be True rather than False. > if left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pandas\core\dtypes\missing.py:431: > 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 left_value != right_value: > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\tests\test_parquet.py:1526: > FutureWarning: Comparing Series of datetimes with 'datetime.date'. > Currently, the > 'datetime.date' is coerced to a datetime. In the future pandas will > not coerce, and 'the values will not compare equal to the > 'datetime.date'. To retain the current behavior, convert the > 'datetime.date' to a datetime with 'pd.Timestamp'. > predicate &= df[name] == value > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\tests\test_parquet.py:1974: > ParserWarning: Falling back to the 'python' engine because the 'c' engine > does not support regex separators (separators > 1 char and different from > '\s+' are interpreted as regex); you can avoid this warning by specifying > engine='python'. > io.BytesIO(expected_string), sep=r'\s{2,}', index_col=None, header=0 > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\tests\test_parquet.py:1996: > ParserWarning: Falling back to the 'python' engine because the 'c' engine > does not support regex separators (separators > 1 char and different from > '\s+' are interpreted as regex); you can avoid this warning by specifying > engine='python'. > sep=r'\s{2,}', index_col=['cut', 'color', 'clarity'], header=0 > c:\miniconda36-x64\envs\wheel_test\lib\site-packages\pyarrow\tests\test_parquet.py:2019: > ParserWarning: Falling back to the 'python' engine because the 'c' engine > does not support regex separators (separators > 1 char and different from > '\s+' are interpreted as regex); you can avoid this warning by specifying > engine='python'. > sep=r'\s{2,}', index_col=['cut', 'color', 'clarity'], header=0 > -- Docs: https://docs.pytest.org/en/latest/warnings.html > ====== 1003 passed, 93 skipped, 5 xfailed, 32 warnings in 19.77 seconds > ======= > (wheel_test) C:\projects\arrow>set lastexitcode=0 > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)