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

[Python] remaining usages of the 'data' attribute (from previous Column) cause warnings

    XMLWordPrintableJSON

Details

    Description

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

      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))
      

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

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m