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

[Python] Add combine_chunks method to ChunkedArray

    XMLWordPrintableJSON

Details

    Description

      Flatten() doesn't work on ChunkedArray. It returns only the ChunkedArray in a list without flattening anything.

      // code placeholder
      aa = pa.array([[1],[2]])
      bb = pa.chunked_array([aa,aa])
       
      bb.flatten()
      
      Out[15]:
      [<pyarrow.lib.ChunkedArray object> [ [ [ 1 ], [ 2 ] ], [ [ 1 ], [ 2 ] ] ]]
      
      Expected:
      [ <pyarrow.lib.Array object> [ 1, 2 ], <pyarrow.lib.Array object> [ 1, 2 ] ]
      

       

      Attachments

        Issue Links

          Activity

            People

              arw2019 Andrew Wieteska
              Marc9595 marc abboud
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1.5h
                  1.5h