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)

Reply via email to