Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11010

[Python] `np.float` deprecation warning in `_pandas_logical_type_map`

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • 3.0.0
    • Python
    • None

    Description

      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,

      ```

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tswast Tim Swast
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: