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

[jira] [Created] (ARROW-6224) [Python] remaining usages of the 'data' attribute (from previous Column) cause warnings

Joris Van den Bossche created ARROW-6224:
--------------------------------------------

             Summary: [Python] remaining usages of the 'data' attribute (from previous Column) cause warnings
                 Key: ARROW-6224
                 URL: https://issues.apache.org/jira/browse/ARROW-6224
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
            Reporter: Joris Van den Bossche


When writing a file to feather, you get those warnings:

{code}
In [45]: pd.DataFrame({'a': [1, 2, 3]}).to_feather('test.feather')                                                                                                                                                 
/home/joris/scipy/repos/arrow/python/pyarrow/feather.py:62: FutureWarning: Calling .data on ChunkedArray is provided for compatibility after Column was removed, simply drop this attribute
  if col.data.num_chunks == 1:
/home/joris/scipy/repos/arrow/python/pyarrow/feather.py:97: FutureWarning: Calling .data on ChunkedArray is provided for compatibility after Column was removed, simply drop this attribute
  self.writer.write_array(name, col.data.chunk(0))
{code}

Since they are coming from pyarrow itself, we can (should) fix them. 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)