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 2020/12/24 10:02:00 UTC

[jira] [Closed] (ARROW-11010) [Python] `np.float` deprecation warning in `_pandas_logical_type_map`

     [ https://issues.apache.org/jira/browse/ARROW-11010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joris Van den Bossche closed ARROW-11010.
-----------------------------------------
    Fix Version/s: 3.0.0
       Resolution: Duplicate

> [Python] `np.float` deprecation warning in `_pandas_logical_type_map`
> ---------------------------------------------------------------------
>
>                 Key: ARROW-11010
>                 URL: https://issues.apache.org/jira/browse/ARROW-11010
>             Project: Apache Arrow
>          Issue Type: Task
>            Reporter: Tim Swast
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> I get the following warning when converting a floating point column in a pandas dataframe into a pyarrow array:
>  
> ```
> /Users/swast/src/python-bigquery/.nox/prerelease_deps/lib/python3.8/site-packages/pyarrow/pandas_compat.py:1031: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. Use `float` by itself, which is identical in behavior, to silence this warning. If you specifically wanted the numpy scalar type, use `np.float_` here.
>  'floating': np.float,
> ```



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