You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Zhenghui Jin (Jira)" <ji...@apache.org> on 2020/12/09 00:43:00 UTC

[jira] [Created] (ARROW-10855) [Python][Numpy] ArrowTypeError after upgrading NumPy to 1.20.0rc1

Zhenghui Jin created ARROW-10855:
------------------------------------

             Summary: [Python][Numpy] ArrowTypeError after upgrading NumPy to 1.20.0rc1
                 Key: ARROW-10855
                 URL: https://issues.apache.org/jira/browse/ARROW-10855
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 2.0.0
         Environment: macOS Big Sur 11.0.1
            Reporter: Zhenghui Jin


After upgrading numpy to 1.20.0rc1 version, pandas .to_parquet() will raise ArrowTypeError. 

NumPy 1.19.4, Python 3.7.9, macos: 

 
{code:java}
Python 3.7.9 (default, Nov 20 2020, 23:58:42) 
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import pandas as pd
>>> np.__version__
'1.19.4'
>>> pd.DataFrame({'i': [1, 2, 3, np.nan]}, dtype='Int64').to_parquet('nullint.parquet')
>>> 

{code}


NumPy 1.20.0rc1, Python 3.7.9, macos: 


{code:java}
Python 3.7.9 (default, Nov 20 2020, 23:58:42) 
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import pandas as pd
>>> np.__version__
'1.19.4'
>>> pd.DataFrame({'i': [1, 2, 3, np.nan]}, dtype='Int64').to_parquet('nullint.parquet')
>>> 

{code}



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