You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/02/02 13:18:00 UTC

[jira] [Commented] (ARROW-11472) [Python][CI] Kartothek integrations build is failing with numpy 1.20

    [ https://issues.apache.org/jira/browse/ARROW-11472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277113#comment-17277113 ] 

Joris Van den Bossche commented on ARROW-11472:
-----------------------------------------------

Looking into this, and this seems to be cause by numpy's aliasing of {{np.unicode}} to be {{int}}. This is already reported and fixed (https://github.com/numpy/numpy/issues/18287), so I assume it will soon be in a 1.20.1 release. 


> [Python][CI] Kartothek integrations build is failing with numpy 1.20
> --------------------------------------------------------------------
>
>                 Key: ARROW-11472
>                 URL: https://issues.apache.org/jira/browse/ARROW-11472
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Joris Van den Bossche
>            Priority: Major
>
> See eg https://github.com/ursacomputing/crossbow/runs/1804464537, failure looks like:
> {code}
>  ____________ ERROR collecting tests/io/dask/dataframe/test_read.py _____________
> tests/io/dask/dataframe/test_read.py:185: in <module>
>     @pytest.mark.parametrize("col", get_dataframe_not_nested().columns)
> kartothek/core/testing.py:65: in get_dataframe_not_nested
>     "unicode": pd.Series(["Ö"], dtype=np.unicode),
> /opt/conda/envs/arrow/lib/python3.7/site-packages/pandas/core/series.py:335: in __init__
>     data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True)
> /opt/conda/envs/arrow/lib/python3.7/site-packages/pandas/core/construction.py:480: in sanitize_array
>     subarr = _try_cast(data, dtype, copy, raise_cast_failure)
> /opt/conda/envs/arrow/lib/python3.7/site-packages/pandas/core/construction.py:587: in _try_cast
>     maybe_cast_to_integer_array(arr, dtype)
> /opt/conda/envs/arrow/lib/python3.7/site-packages/pandas/core/dtypes/cast.py:1723: in maybe_cast_to_integer_array
>     casted = np.array(arr, dtype=dtype, copy=copy)
> E   ValueError: invalid literal for int() with base 10: 'Ö'
> {code}
> So it seems that {{pd.Series(["Ö"], dtype=np.unicode)}} stopped working with numpy 1.20.0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)